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