[Issue 12167] GIT HEAD: AAs are broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 16 06:44:11 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12167



--- Comment #9 from yebblies <yebblies at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list