blob: 4990b66f1f93c212238dfeac22da7301d1844ba5 [file] [log] [blame]
// 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;
}