gcc/testsuite/gdc.test/fail_compilation/fail278.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail278.d(11): Error: template instance `NONEXISTENT!()` template `NONEXISTENT` is not defined |
| 5 | fail_compilation/fail278.d(12): Error: template instance `fail278.F!()` error instantiating |
| 6 | fail_compilation/fail278.d(13): instantiated from here: `Bar!(Foo)` |
| 7 | --- |
| 8 | */ |
| 9 | |
| 10 | template Id(xs...) { const Id = xs[0]; } |
| 11 | template Foo() { mixin Id!(NONEXISTENT!()); } |
| 12 | template Bar(alias F) { const int Bar = F!(); } |
| 13 | alias Bar!(Foo) x; |