Mercurial > projects > ddmd
diff dmd/IdentityExp.d @ 73:ef02e2e203c2
Updating to dmd2.033
author | korDen |
---|---|
date | Sat, 28 Aug 2010 19:42:41 +0400 |
parents | 2e2a5c3f943a |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/IdentityExp.d Sat Aug 28 16:19:48 2010 +0200 +++ b/dmd/IdentityExp.d Sat Aug 28 19:42:41 2010 +0400 @@ -10,6 +10,7 @@ import dmd.Type; import dmd.WANT; import dmd.TY; +import dmd.GlobalExpressions; import dmd.expression.Identity; import dmd.backend.elem; @@ -61,6 +62,8 @@ if ((this.e1.isConst() && this.e2.isConst()) || (this.e1.op == TOK.TOKnull && this.e2.op == TOK.TOKnull)) { e = Identity(op, type, this.e1, this.e2); + if (e is EXP_CANT_INTERPRET) + e = this; } return e;