comparison dmd/TypeReference.d @ 135:af1bebfd96a4 dmd2037

dmd 2.038
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Mon, 13 Sep 2010 22:19:42 +0100
parents e28b18c23469
children e3afd1303184
comparison
equal deleted inserted replaced
134:4251f96733f4 135:af1bebfd96a4
8 import dmd.Loc; 8 import dmd.Loc;
9 import dmd.Scope; 9 import dmd.Scope;
10 import dmd.HdrGenState; 10 import dmd.HdrGenState;
11 import dmd.Expression; 11 import dmd.Expression;
12 import dmd.Identifier; 12 import dmd.Identifier;
13 import dmd.NullExp;
13 import dmd.CppMangleState; 14 import dmd.CppMangleState;
14 import dmd.TY; 15 import dmd.TY;
15 16
16 class TypeReference : TypeNext 17 class TypeReference : TypeNext
17 { 18 {
54 assert(false); 55 assert(false);
55 } 56 }
56 57
57 override Expression defaultInit(Loc loc) 58 override Expression defaultInit(Loc loc)
58 { 59 {
59 assert(false); 60 version(LOGDEFAULTINIT) {
61 printf("TypeReference::defaultInit() '%s'\n", toChars());
62 }
63 return new NullExp(loc, this);
60 } 64 }
61 65
62 override bool isZeroInit(Loc loc) 66 override bool isZeroInit(Loc loc)
63 { 67 {
64 assert(false); 68 assert(false);