| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/fail222.d(11): Error: template `fail222.getMixin(TArg..., int i = 0)()` template sequence parameter must be the last one |
| 5 |
fail_compilation/fail222.d(18): Error: template instance `getMixin!()` does not match template declaration `getMixin(TArg..., int i = 0)()` |
| 6 |
fail_compilation/fail222.d(21): Error: template instance `fail222.Thing!()` error instantiating |
| 7 |
fail_compilation/fail222.d(23): Error: template `fail222.fooBar(A..., B...)()` template sequence parameter must be the last one |
| 8 |
--- |
| 9 |
*/ |
| 10 |
|
| 11 |
string getMixin(TArg..., int i = 0)() |
| 12 |
{ |
| 13 |
return ``; |
| 14 |
} |
| 15 |
|
| 16 |
class Thing(TArg...) |
| 17 |
{ |
| 18 |
mixin(getMixin!(TArg)()); |
| 19 |
} |
| 20 |
|
| 21 |
public Thing!() stuff; |
| 22 |
|
| 23 |
void fooBar (A..., B...)() {} |