www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9104] New: No line number with private name found by "did you mean"

reply d-bugmail puremagic.com writes:
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



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: -------
Dec 02 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9104


Jonathan M Davis <jmdavisProg gmx.com> changed:

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



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: -------
Dec 02 2012
prev sibling parent d-bugmail puremagic.com writes:
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



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: -------
Dec 02 2012