1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail315.d-mixin-16(16): Error: found `;` when expecting `,`
5 fail_compilation/fail315.d-mixin-16(16): Error: expression expected, not `}`
6 fail_compilation/fail315.d-mixin-16(16): Error: found `EOF` when expecting `,`
7 fail_compilation/fail315.d-mixin-16(16): Error: found `EOF` when expecting `]`
8 fail_compilation/fail315.d-mixin-16(16): Error: found `EOF` when expecting `;` following return statement
9 fail_compilation/fail315.d-mixin-16(16): Error: found `EOF` when expecting `}` following compound statement
10 fail_compilation/fail315.d(21): Error: template instance fail315.foo!() error instantiating
11 ---
12 */
13 
foo(S...)14 void foo(S...)(S u)
15 {
16     alias typeof(mixin("{ return a[1;}()")) z;
17 }
18 
main()19 void main()
20 {
21     foo!()(0);
22 }
23