Mercurial > projects > ddmd
comparison dmd/DsymbolExp.d @ 179:cd48cb899aee
Updated to dmd2.040
author | korDen |
---|---|
date | Sun, 17 Oct 2010 20:56:07 +0400 |
parents | e3afd1303184 |
children | b0d41ff5e0df |
comparison
equal
deleted
inserted
replaced
178:e3afd1303184 | 179:cd48cb899aee |
---|---|
125 } | 125 } |
126 | 126 |
127 if ((v.storage_class & STC.STCmanifest) && v.init) | 127 if ((v.storage_class & STC.STCmanifest) && v.init) |
128 { | 128 { |
129 e = v.init.toExpression(); | 129 e = v.init.toExpression(); |
130 e.semantic(sc); | 130 if (!e) |
131 { | |
132 error("cannot make expression out of initializer for %s", v.toChars()); | |
133 e = new ErrorExp(); | |
134 } | |
135 e = e.semantic(sc); | |
131 return e; | 136 return e; |
132 } | 137 } |
133 | 138 |
134 e = new VarExp(loc, v); | 139 e = new VarExp(loc, v); |
135 e.type = type; | 140 e.type = type; |