Mercurial > projects > ddmd
diff dmd/TypeTypedef.d @ 63:cab4c37afb89
A bunch of implementations
author | korDen |
---|---|
date | Mon, 23 Aug 2010 16:52:24 +0400 |
parents | a8b50ff7f201 |
children | 4290d870944a |
line wrap: on
line diff
--- a/dmd/TypeTypedef.d Mon Aug 23 03:21:32 2010 +0400 +++ b/dmd/TypeTypedef.d Mon Aug 23 16:52:24 2010 +0400 @@ -263,7 +263,15 @@ MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes) { - assert(false); + // Extra check + if (tparam && tparam.ty == Ttypedef) + { + TypeTypedef tp = cast(TypeTypedef)tparam; + + if (sym != tp.sym) + return MATCHnomatch; + } + return Type.deduceType(sc, tparam, parameters, dedtypes); } TypeInfoDeclaration getTypeInfoDeclaration()