Skip to content

Commit

Permalink
Merge pull request #3923 from yebblies/shadowded
Browse files Browse the repository at this point in the history
[DDMD] Fix shadowing in deduceType
  • Loading branch information
9rnsr committed Aug 30, 2014
2 parents 959e792 + 0131d93 commit 3f86b5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/template.c
Expand Up @@ -4244,13 +4244,13 @@ MATCH deduceType(RootObject *o, Scope *sc, Type *tparam, TemplateParameters *par
match1 = MATCHexact;
for (size_t j = 0; j < xt->argexps.dim; j++)
{
Expression *e = xt->argexps[j];
if (e == emptyArrayElement)
Expression *ex = xt->argexps[j];
if (ex == emptyArrayElement)
continue;
Type *pt = tt->addMod(xt->tparams[j]->mod);
if (wm && *wm)
pt = pt->substWildTo(*wm);
MATCH m = e->implicitConvTo(pt);
MATCH m = ex->implicitConvTo(pt);
if (match1 > m)
match1 = m;
if (match1 <= MATCHnomatch)
Expand Down

0 comments on commit 3f86b5d

Please sign in to comment.