Mercurial > projects > ldc
diff dmd/func.c @ 1362:194852badf8c
Don't always expand aliases to FuncDecls to FuncAliasDecls - breaks for single
functions.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 16 May 2009 14:22:09 +0200 |
parents | 78038e540342 |
children | 8026319762be |
line wrap: on
line diff
--- a/dmd/func.c Sat May 16 12:17:33 2009 +0200 +++ b/dmd/func.c Sat May 16 14:22:09 2009 +0200 @@ -1560,6 +1560,9 @@ break; if (next == fstart) break; + if (a->importprot == PROTprivate && a->getModule() != from) + if (FuncDeclaration* fd = next->isFuncDeclaration()) + next = fd->overnext; } else {