diff --git a/dmd2/dsymbol.c b/dmd2/dsymbol.c index 6be7b208..f7c85a34 100644 --- a/dmd2/dsymbol.c +++ b/dmd2/dsymbol.c @@ -865,14 +865,6 @@ Dsymbol *ScopeDsymbol::search(Loc loc, Identifier *ident, int flags) // Look in symbols declared in this module Dsymbol *s = symtab ? symtab->lookup(ident) : NULL; //printf("\ts = %p, imports = %p, %d\n", s, imports, imports ? imports->dim : 0); - // hide the aliases generated by selective or renamed private imports - if (s && flags & 1) - if (AliasDeclaration* ad = s->isAliasDeclaration()) - // may be a private alias to a function that is overloaded. these - // are sorted out during overload resolution, accept them here - if (ad->importprot == PROTprivate && !ad->aliassym->isFuncAliasDeclaration()) - s = NULL; - if (s) { //printf("\ts = '%s.%s'\n",toChars(),s->toChars());