Mercurial > projects > ddmd
diff dmd/TypeInstance.d @ 121:347de076ad34
TemplateParameters -> Vector
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Thu, 02 Sep 2010 22:41:12 +0100 |
parents | e28b18c23469 |
children | e3afd1303184 |
line wrap: on
line diff
--- a/dmd/TypeInstance.d Thu Sep 02 20:19:14 2010 +0100 +++ b/dmd/TypeInstance.d Thu Sep 02 22:41:12 2010 +0100 @@ -198,7 +198,7 @@ } goto Lnomatch; } - TemplateParameter tpx = cast(TemplateParameter)parameters.data[i]; + TemplateParameter tpx = parameters[i]; // This logic duplicates tpx->matchArg() TemplateAliasParameter ta = tpx.isTemplateAliasParameter(); if (!ta) @@ -325,7 +325,7 @@ L1: if (j == -1) goto Lnomatch; - TemplateParameter tp_ = cast(TemplateParameter)parameters.data[j]; + auto tp_ = parameters[j]; // BUG: use tp->matchArg() instead of the following TemplateValueParameter tv = tp_.isTemplateValueParameter(); if (!tv) @@ -349,7 +349,7 @@ j = templateParameterLookup(t2, parameters); if (j == -1) goto Lnomatch; - TemplateParameter tp_ = cast(TemplateParameter)parameters.data[j]; + auto tp_ = parameters[j]; // BUG: use tp->matchArg() instead of the following TemplateAliasParameter ta = tp_.isTemplateAliasParameter(); if (!ta)