template Bar(A...) { alias A[0] T; T[] a = []; } template Foo(A...) { alias Bar!(A) bar; } alias Foo!(int, 1) foo; ---- Error: can't have array of (int) T in Bar becomes tuple(int) instead of expected int. The example compiles if all arguments passed to Foo are types: alias Foo!(byte, int) foo; // ok, foo.a is byte[]
Works with current D2 (2.058)
Same as bug 3092?
Yeah. *** This issue has been marked as a duplicate of issue 3092 ***