Skip to content

Commit

Permalink
Issue 14858 - spurious "Error: overload alias foo is not a variable" …
Browse files Browse the repository at this point in the history
…when overloading template and non-template via aliases
  • Loading branch information
ibuclaw committed Jul 23, 2017
1 parent bf4a5f0 commit 56edd1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/expression.c
Expand Up @@ -3493,6 +3493,12 @@ Expression *DsymbolExp::resolve(Loc loc, Scope *sc, Dsymbol *s, bool hasOverload
fd->type = f->type;
return new VarExp(loc, fd, hasOverloads);
}
if (OverDeclaration *od = s->isOverDeclaration())
{
e = new VarExp(loc, od, 1);
e->type = Type::tvoid;
return e;
}
if (OverloadSet *o = s->isOverloadSet())
{
//printf("'%s' is an overload set\n", o->toChars());
Expand Down

0 comments on commit 56edd1a

Please sign in to comment.