mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
13 lines
461 B
D
13 lines
461 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail278.d(11): Error: template instance `NONEXISTENT!()` template `NONEXISTENT` is not defined
|
|
fail_compilation/fail278.d(12): Error: template instance `fail278.F!()` error instantiating
|
|
fail_compilation/fail278.d(13): instantiated from here: `Bar!(Foo)`
|
|
---
|
|
*/
|
|
|
|
template Id(xs...) { const Id = xs[0]; }
|
|
template Foo() { mixin Id!(NONEXISTENT!()); }
|
|
template Bar(alias F) { const int Bar = F!(); }
|
|
alias Bar!(Foo) x;
|