blob: 19852758252d0669251ddd8845d624a63b022ba7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
TEST_OUTPUT:
---
fail_compilation/diag9004.d(21): Error: template diag9004.bar cannot deduce function from argument types !()(Foo!int, int), candidates are:
fail_compilation/diag9004.d(14): diag9004.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);
}
|