gcc/testsuite/gdc.test/fail_compilation/fail154.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail154.d(18): Error: template instance `X!(MYP!int)` does not match template declaration `X(T : Policy!T, alias Policy)` |
| 5 | --- |
| 6 | */ |
| 7 | |
| 8 | class X(T:Policy!(T), alias Policy) |
| 9 | { |
| 10 | mixin Policy!(T); |
| 11 | } |
| 12 | |
| 13 | template MYP(T) |
| 14 | { |
| 15 | void foo(T); |
| 16 | } |
| 17 | |
| 18 | X!(MYP!(int)) x; |