blob: 37d5bd84f32b4e6df8b853fd056eba4e358c9734 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/diag9004.d(21): Error: none of the overloads of template `diag9004.bar` are callable using argument types `!()(Foo!int, int)`
fail_compilation/diag9004.d(14): Candidate is: `bar(FooT)(FooT foo, FooT.T x)`
---
*/
struct Foo(_T)
{
alias _T T;
}
void bar(FooT)(FooT foo, FooT.T x)
{
}
void main()
{
Foo!int foo;
bar(foo, 1);
}