[Issue 13736] New: Spellchecker should prefer symbols from inner scopes
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Nov 15 06:38:41 PST 2014
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: nobody at puremagic.com
Reporter: r.sagitario at 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.
--
More information about the Digitalmars-d-bugs
mailing list