blob: 4990b66f1f93c212238dfeac22da7301d1844ba5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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;
}
|