mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
19 lines
219 B
D
19 lines
219 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail10.d(18): Error: mixin `Foo!y` cannot resolve forward reference
|
|
---
|
|
*/
|
|
|
|
template Foo(alias b)
|
|
{
|
|
int a()
|
|
{
|
|
return b;
|
|
}
|
|
}
|
|
|
|
void test()
|
|
{
|
|
mixin Foo!(y) y;
|
|
}
|