gcc/testsuite/gdc.test/fail_compilation/ice13225.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/ice13225.d(12): Error: mixin `ice13225.S.M!(function (S __param_0) pure nothrow @nogc @safe => 0)` does not match template declaration `M(T)` |
| 5 | fail_compilation/ice13225.d(16): Error: undefined identifier `undefined` |
| 6 | --- |
| 7 | */ |
| 8 | mixin template M(T) {} |
| 9 | |
| 10 | struct S |
| 11 | { |
| 12 | mixin M!((typeof(this)) => 0); |
| 13 | } |
| 14 | struct T |
| 15 | { |
| 16 | mixin M!(() => undefined); |
| 17 | } |