mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-16 02:17:07 +02:00
Merge dmdfe 2.057
This commit is contained in:
+2
-2
@@ -47,8 +47,6 @@ void AliasThis::semantic(Scope *sc)
|
||||
ad = parent->isAggregateDeclaration();
|
||||
if (ad)
|
||||
{
|
||||
if (ad->aliasthis)
|
||||
error("there can be only one alias this");
|
||||
assert(ad->members);
|
||||
Dsymbol *s = ad->search(loc, ident, 0);
|
||||
if (!s)
|
||||
@@ -58,6 +56,8 @@ void AliasThis::semantic(Scope *sc)
|
||||
else
|
||||
::error(loc, "undefined identifier %s", ident->toChars());
|
||||
}
|
||||
else if (ad->aliasthis && s != ad->aliasthis)
|
||||
error("there can be only one alias this");
|
||||
ad->aliasthis = s;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user