mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
19 lines
368 B
D
19 lines
368 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice11472.d(13): Error: template instance `fun2!fun` `fun2` is not a template declaration, it is a function
|
|
fail_compilation/ice11472.d(18): Error: template instance `ice11472.fun1!(fun3)` error instantiating
|
|
---
|
|
*/
|
|
|
|
void fun3() {}
|
|
void fun2(string a) {}
|
|
void fun1(alias fun=fun3)()
|
|
{
|
|
"a".fun2!fun;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
fun1;
|
|
}
|