comparison dmd/TypeTypedef.d @ 63:cab4c37afb89

A bunch of implementations
author korDen
date Mon, 23 Aug 2010 16:52:24 +0400
parents a8b50ff7f201
children 4290d870944a
comparison
equal deleted inserted replaced
62:6557375aff35 63:cab4c37afb89
261 return pdt; 261 return pdt;
262 } 262 }
263 263
264 MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes) 264 MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes)
265 { 265 {
266 assert(false); 266 // Extra check
267 if (tparam && tparam.ty == Ttypedef)
268 {
269 TypeTypedef tp = cast(TypeTypedef)tparam;
270
271 if (sym != tp.sym)
272 return MATCHnomatch;
273 }
274 return Type.deduceType(sc, tparam, parameters, dedtypes);
267 } 275 }
268 276
269 TypeInfoDeclaration getTypeInfoDeclaration() 277 TypeInfoDeclaration getTypeInfoDeclaration()
270 { 278 {
271 return new TypeInfoTypedefDeclaration(this); 279 return new TypeInfoTypedefDeclaration(this);