www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20638] New: spelling correction offers private member of

https://issues.dlang.org/show_bug.cgi?id=20638

          Issue ID: 20638
           Summary: spelling correction offers private member of package
                    on named package access
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: default_357-line yahoo.de



Repro:

a.d:
private void foo() { }
b.d:
import a;
void main() { a.foo; }

Expected:

b.d(2): Error: undefined identifier foo in module a

Got:

b.d(2): Error: undefined identifier foo in module a, did you mean function foo?

--
Mar 05