mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-18 05:43:14 +01:00
Automated merge with http://hg.dsource.org/projects/ldc
This commit is contained in:
@@ -502,16 +502,16 @@ void AliasDeclaration::semantic(Scope *sc)
|
||||
FuncDeclaration *f = s->toAlias()->isFuncDeclaration();
|
||||
if (f)
|
||||
{
|
||||
FuncAliasDeclaration *fa = new FuncAliasDeclaration(f);
|
||||
fa->importprot = importprot;
|
||||
if (overnext)
|
||||
{
|
||||
FuncAliasDeclaration *fa = new FuncAliasDeclaration(f);
|
||||
fa->importprot = importprot;
|
||||
if (!fa->overloadInsert(overnext))
|
||||
ScopeDsymbol::multiplyDefined(0, f, overnext);
|
||||
overnext = NULL;
|
||||
s = fa;
|
||||
s->parent = sc->parent;
|
||||
}
|
||||
s = fa;
|
||||
s->parent = sc->parent;
|
||||
}
|
||||
if (overnext)
|
||||
ScopeDsymbol::multiplyDefined(0, s, overnext);
|
||||
|
||||
@@ -1560,6 +1560,9 @@ int overloadApply(Module* from, FuncDeclaration *fstart,
|
||||
break;
|
||||
if (next == fstart)
|
||||
break;
|
||||
if (a->importprot == PROTprivate && a->getModule() != from)
|
||||
if (FuncDeclaration* fd = next->isFuncDeclaration())
|
||||
next = fd->overnext;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user