November 15, 2014 [Issue 13736] New: Spellchecker should prefer symbols from inner scopes | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: r.sagitario@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. -- |
Copyright © 1999-2021 by the D Language Foundation