[Issue 12185] New: AA get() is getting in the way of diagnostics
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 16 14:41:34 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12185
Summary: AA get() is getting in the way of diagnostics
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: druntime
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-02-16 14:41:33 PST ---
void main()
{
auto x = not;
}
test.d(5): Error: undefined identifier not, did you mean template get(T :
Value[Key], Value, Key, K, V)(T aa, K key, lazy V defaultValue) if
(is(typeof(true ? aa[key] : defaultValue)))?
Unfortunately due to the recent AA changes the new UFCS functions are getting
picked up by the spellchecker. I'm getting the above diagnostic more and more
frequently. I wonder if we can do something about this without adding special
cases to the compiler.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list