--- module a1; class A { protected void foo(); } --- and --- import a1; void main() { auto a = new A; a.foo(); } --- a2.d(5): Error: no property foo for type a1.A, did you mean a1.A.foo? It works if public of course, but if protected or private it gives a silly error. on private, it should probably not suggest anything; private members are supposed to be invisible. But the protected case should probably explicitly call out that it is protected and thus inaccessible.
Duplicate of 20637 which has been fixed in master *** This issue has been marked as a duplicate of issue 20637 ***