mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
18 lines
303 B
D
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;
|
|
}
|