4 fail_compilation/diag14818.d(40): Error: none of the overloads of `func` are callable using argument types `(string)`
5 fail_compilation/diag14818.d(18): Candidates are: `diag14818.foo(int __param_0)`
6 fail_compilation/diag14818.d(19): `diag14818.bar(double __param_0)`
7 fail_compilation/diag14818.d(41): Error: template instance `diag14818.X!string` does not match any template declaration
8 fail_compilation/diag14818.d(41): Candidates are:
9 fail_compilation/diag14818.d(24): Foo(T) if (is(T == int))
10 fail_compilation/diag14818.d(25): Bar(T) if (is(T == double))
11 fail_compilation/diag14818.d(42): Error: template instance `diag14818.Y!string` does not match any template declaration
12 fail_compilation/diag14818.d(42): Candidates are:
13 fail_compilation/diag14818.d(25): Bar(T) if (is(T == double))
14 fail_compilation/diag14818.d(24): Foo(T) if (is(T == int))
22 // in here, func is a FuncAliasDeclaration;
24 template Foo(T
) if (is(T
== int)) {}
25 template Bar(T
) if (is(T
== double)) {}
29 // in here, X is an OverDeclaration
31 template Mix1() { alias M
= Foo
; }
32 template Mix2() { alias M
= Bar
; }
36 // in here, Y is an OverloadSet