https://d.puremagic.com/issues/show_bug.cgi?id=12167
--- Comment #9 from yebblies <[email protected]> 2014-02-17 01:44:09 EST --- (In reply to comment #0) > > Also it rejects previously valid code: > class A {} > > immutable A[short] table; > auto a = table.get(10, null); > > src\druntime\import\object.di(487): object.get(T : Value[Key], Value, > Key, K, V)(T* aa, K key, lazy V defaultValue) if (is(typeof(true ? (*aa)[key] > : > defaultValue))) I honestly don't know how to write a constraint for this. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
