dmd/compiler/test/fail_compilation/fail115.d
2022-07-09 18:53:07 +02:00

18 lines
303 B
D

// https://issues.dlang.org/show_bug.cgi?id=402
// compiler crash with mixin and forward reference
/*
TEST_OUTPUT:
---
fail_compilation/fail115.d(17): Error: mixin `Foo!y` cannot resolve forward reference
---
*/
template Foo(alias b)
{
int a() { return b; }
}
void main()
{
mixin Foo!(y) y;
}