[Issue 20637] New: spelling correction offers private members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 5 10:34:55 UTC 2020


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

          Issue ID: 20637
           Summary: spelling correction offers private members
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: default_357-line at yahoo.de

Repro:

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

`dmd a.d b.d` outputs:

> b.d(3): Error: no property foo for type a.A, did you mean a.A.foo?

DMD should not report inaccessible private members as spelling corrections.

--


More information about the Digitalmars-d-bugs mailing list