Bug 13736 – Spellchecker should prefer symbols from inner scopes

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2014-11-15T14:38:41Z
Last change time
2018-01-25T15:19:08Z
Keywords
diagnostic, pull
Assigned to
No Owner
Creator
Rainer Schuetze

Comments

Comment #0 by r.sagitario — 2014-11-15T14:38:41Z
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.
Comment #1 by r.sagitario — 2014-11-15T14:53:55Z
Comment #2 by ibuclaw — 2014-11-15T16:54:31Z
Comment #3 by r.sagitario — 2014-11-16T09:18:14Z
(In reply to Iain Buclaw from comment #2) > Probably some relation to https://issues.dlang.org/show_bug.cgi?id=10241 Pretty related, though I explicitely chose an import that imports a module from core privately. std.stdio publicly imports of core.stdc.stdio, so presenting "core" as a possible correction can be acceptable.
Comment #4 by github-bugzilla — 2014-11-20T01:33:54Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5c087d7d07927ec856b3d5899b730d0af7e06aa6 Merge pull request #4143 from rainers/issue13736 Fix 13736 - Spellchecker should prefer symbols from inner scopes
Comment #5 by github-bugzilla — 2015-02-18T03:39:45Z