Mercurial > projects > ddmd
comparison dmd/NullExp.d @ 135:af1bebfd96a4 dmd2037
dmd 2.038
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 13 Sep 2010 22:19:42 +0100 |
parents | 9e39c7de8438 |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
134:4251f96733f4 | 135:af1bebfd96a4 |
---|---|
19 | 19 |
20 class NullExp : Expression | 20 class NullExp : Expression |
21 { | 21 { |
22 ubyte committed; | 22 ubyte committed; |
23 | 23 |
24 this(Loc loc) | 24 this(Loc loc, Type type = null) |
25 { | 25 { |
26 super(loc, TOK.TOKnull, NullExp.sizeof); | 26 super(loc, TOK.TOKnull, NullExp.sizeof); |
27 this.type = type; | |
27 } | 28 } |
28 | 29 |
29 override Expression semantic(Scope sc) | 30 override Expression semantic(Scope sc) |
30 { | 31 { |
31 version (LOGSEMANTIC) { | 32 version (LOGSEMANTIC) { |