https://d.puremagic.com/issues/show_bug.cgi?id=8557
--- Comment #15 from [email protected] 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: -------
