[Issue 9104] New: No line number with private name found by "did you mean"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 2 11:23:47 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9104

           Summary: No line number with private name found by "did you
                    mean"
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2012-12-02 11:23:46 PST ---
It seems the routine that finds similar names has to exclude not visibile
names:


import std.typetuple;
void main() {
    Park x;
}


DMD 2.061alpha gives two wrong error messages:

Error: module test std.typetuple.Pack(T...) is private
test.d(3): Error: undefined identifier Park, did you mean template Pack(T...)?


Expected error message:

test.d(3): Error: undefined identifier Park

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list