[Issue 8557] AA error with string[string][]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 28 00:55:22 PST 2013


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



--- Comment #15 from bearophile_hugs at eml.cc 2013-11-28 00:55:17 PST ---
Here I think both should compile or both should not compile:


void main() {
    enum Foo { A }
    int[]     a1 = [Foo.A: 10]; // OK
    int[] a2; a2 = [Foo.A: 10]; // Error
}


Currently in dmd 2.065alpha that program produces:

test.d(4): Error: cannot implicitly convert expression ([cast(Foo)0:10]) of
type int[Foo] to int[]

-- 
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