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

           Summary: Spellchecker suggestions hit private symbols (and
                    cause bad diganostic)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Dmitry Olshansky <[email protected]> 2012-12-22 
12:23:59 PST ---
The following:

import std.typetuple;

void fn()
{
    genericReplace(0, 0, 3);
}


Produces unexpected error message and features one without a line number:

Error: module dignostic std.typetuple.GenericReplace(args...) if (args.length
>= 2) is private
dignostic.d(5): Error: undefined identifier genericReplace, did you mean
template GenericReplace(args...) if (args.length >= 2)?

It shouldn't suggest private symbols from external modules (and I'd argue they
shouldn't be otherwise visible) nor print nonsense while trying to do it.

Tested on latest DMD from github master.

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

Reply via email to