https://issues.dlang.org/show_bug.cgi?id=13736

          Issue ID: 13736
           Summary: Spellchecker should prefer symbols from inner scopes
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nob...@puremagic.com
          Reporter: r.sagita...@gmx.de

Compiling this code:

//////////////////
import std.format;

int cor1;

void main()
{
    cor2 = 2;
}
//////////////////

produces error:

Error: undefined identifier cor2, did you mean import core?

The symbol "core" is private in the std.format import and should not be even
considered (see issue 5839). Even if it were public, "cor1" should be proposed
as it is more likely meant.

--

Reply via email to