@@ -2562,7 +2562,7 @@ extern (C++) abstract class Type : RootObject
25622562 if (this != Type.terror)
25632563 {
25642564 if (s)
2565- error(loc, " no property '%s' for type '%s', did you mean '%s'?" , ident.toChars(), toChars(), s.toChars ());
2565+ error(loc, " no property '%s' for type '%s', did you mean '%s'?" , ident.toChars(), toChars(), s.toPrettyChars ());
25662566 else
25672567 error(loc, " no property '%s' for type '%s'" , ident.toChars(), toChars());
25682568 }
@@ -6566,7 +6566,9 @@ extern (C++) abstract class TypeQualified : Type
65666566
65676567 Type t = s.getType(); // type symbol, type alias, or type tuple?
65686568 uint errorsave = global.errors;
6569- Dsymbol sm = s.searchX(loc, sc, id);
6569+ int flags = t is null ? SearchLocalsOnly : IgnorePrivateImports;
6570+
6571+ Dsymbol sm = s.searchX(loc, sc, id, flags);
65706572 if (sm && ! (sc.flags & SCOPE .ignoresymbolvisibility) && ! symbolIsVisible(sc, sm))
65716573 {
65726574 .deprecation(loc, " %s is not visible from module %s" , sm.toPrettyChars(), sc._module.toChars());
@@ -6612,7 +6614,7 @@ extern (C++) abstract class TypeQualified : Type
66126614 sm = t.toDsymbol(sc);
66136615 if (sm && id.dyncast() == DYNCAST .identifier)
66146616 {
6615- sm = sm.search(loc, cast (Identifier)id);
6617+ sm = sm.search(loc, cast (Identifier)id, IgnorePrivateImports );
66166618 if (sm)
66176619 goto L2 ;
66186620 }
0 commit comments