www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10241] New: Probably wrong "did you mean" suggestion in error message

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

           Summary: Probably wrong "did you mean" suggestion in error
                    message
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



import std.stdio;
void main() {
    pre = 0;
}


Gives a strange error message, DMD 2.064alpha: 

test.d(3): Error: undefined identifier pre, did you mean import core?

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