This is the second bug report in bug #1298, which is completely unrelated to the first one. ---- template Foo(Strings...) { const a2 = [Strings]; } alias Foo!("one", "two") foo; // Error: cannot implicitly convert expression (tuple("one","two")) of type (char[3], char[3]) to char
Expansion works inside dynamic array literals, but doesn't inside array initializers. The following works (both D1 & D2): template Foo(Strings...) { const a2 = ([Strings])[]; // as an array literal } alias Foo!("one", "two") foo; *** This issue has been marked as a duplicate of issue 1064 ***