Mercurial > projects > ddmd
comparison dmd/TypeEnum.d @ 93:df6d0f967680
implemented a whole bunch of methods to make phobos 2.035 compile
and some additional ones I came across
author | Trass3r |
---|---|
date | Mon, 30 Aug 2010 22:50:30 +0200 |
parents | 43073c7c7769 |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
92:0c891ec48515 | 93:df6d0f967680 |
---|---|
227 return 0; | 227 return 0; |
228 } | 228 } |
229 return sym.defaultval.isBool(false); | 229 return sym.defaultval.isBool(false); |
230 } | 230 } |
231 | 231 |
232 override MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes) | 232 override MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes) |
233 { | 233 { |
234 assert(false); | 234 // Extra check |
235 if (tparam && tparam.ty == Tenum) | |
236 { | |
237 TypeEnum tp = cast(TypeEnum)tparam; | |
238 | |
239 if (sym != tp.sym) | |
240 return MATCHnomatch; | |
241 } | |
242 return Type.deduceType(sc, tparam, parameters, dedtypes); | |
235 } | 243 } |
236 | 244 |
237 override TypeInfoDeclaration getTypeInfoDeclaration() | 245 override TypeInfoDeclaration getTypeInfoDeclaration() |
238 { | 246 { |
239 return new TypeInfoEnumDeclaration(this); | 247 return new TypeInfoEnumDeclaration(this); |