Skip to content

Commit

Permalink
merge D2 pull #898
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Apr 23, 2012
1 parent 5707e57 commit 7adb2ef
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/declaration.c
Expand Up @@ -535,6 +535,18 @@ void AliasDeclaration::semantic(Scope *sc)
else if (t)
{
type = t->semantic(loc, sc);

/* If type is class or struct, convert to symbol.
* See bugzilla 6475.
*/
s = type->toDsymbol(sc);
if (s
#if DMDV2
&& ((s->getType() && type->equals(s->getType())) || s->isEnumMember())
#endif
)
goto L2;

//printf("\talias resolved to type %s\n", type->toChars());
}
if (overnext)
Expand Down

0 comments on commit 7adb2ef

Please sign in to comment.