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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Andrej Mitrovic <[email protected]> 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: -------

Reply via email to