Skip to content

Commit

Permalink
Make if (v; e) syntax an error again
Browse files Browse the repository at this point in the history
When introducing the deprecation() function the syntax "if (v; e)" was
enabled again as deprecated because of a misleading error message.
  • Loading branch information
Leandro Lucarella committed Nov 18, 2012
1 parent c2e6316 commit 1ff72c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse.c
Expand Up @@ -3208,7 +3208,7 @@ Statement *Parser::parseStatement(int flags)
arg = new Parameter(STCin, NULL, token.ident, NULL);
nextToken();
nextToken();
deprecation("if (v; e) is deprecated, use if (auto v = e)");
error("if (v; e) is no longer valid, use if (auto v = e)");
}
}

Expand Down

0 comments on commit 1ff72c2

Please sign in to comment.