1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag9004.d(21): Error: template diag9004.bar cannot deduce function from argument types !()(Foo!int, int), candidates are:
5 fail_compilation/diag9004.d(14):        diag9004.bar(FooT)(FooT foo, FooT.T x)
6 ---
7 */
8 
Foo(_T)9 struct Foo(_T)
10 {
11     alias _T T;
12 }
13 
bar(FooT)14 void bar(FooT)(FooT foo, FooT.T x)
15 {
16 }
17 
main()18 void main()
19 {
20     Foo!int foo;
21     bar(foo, 1);
22 }
23