Permalink
Browse files

Merge pull request #1728 from 9rnsr/fix9650

Issue 9650 - __traits(compiles) + mixin
  • Loading branch information...
2 parents 8f9fe3b + ac89791 commit 618d8277aaf20c9f8d8eebc39289e3d2a1c63d42 @WalterBright WalterBright committed Mar 23, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/expression.c
View
@@ -6539,7 +6539,10 @@ Expression *CompileExp::semantic(Scope *sc)
p.loc = loc;
p.nextToken();
//printf("p.loc.linnum = %d\n", p.loc.linnum);
+ unsigned errors = global.errors;
Expression *e = p.parseExpression();
+ if (global.errors != errors)
+ return new ErrorExp();
if (p.token.value != TOKeof)
{ error("incomplete mixin expression (%s)", se->toChars());
return new ErrorExp();

0 comments on commit 618d827

Please sign in to comment.