Thread overview
[Issue 9104] New: No line number with private name found by "did you mean"
Dec 02, 2012
Jonathan M Davis
Dec 02, 2012
Andrej Mitrovic
December 02, 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@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@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: -------
December 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9104


Jonathan M Davis <jmdavisProg@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg@gmx.com


--- Comment #1 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-12-02 11:31:40 PST ---
> It seems the routine that finds similar names has to exclude not visibile
names:

Except that private symbols _are_ visibile. They're just not accessible. It would be cool if we could convince Walter of making them invisible (at least as far as stuff like overload sets go), but they're definitely visible.

That being said, I don't know that it's a good idea for the spell checker to be suggesting symbols which are inaccessible, and it definitely shouldn't be complaining about them being private when _it_ is the one using them and not the actual code.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9104


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |DUPLICATE


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-12-02 11:41:08 PST ---
*** This issue has been marked as a duplicate of issue 7956 ***

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