Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/diag11769.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag11769.d(18): Error: `diag11769.foo!string.bar` called with argument types `(string)` matches multiple overloads after implicit conversions:
5 fail_compilation/diag11769.d(13): `diag11769.foo!string.bar(wstring __param_0)`
6 and:
7 fail_compilation/diag11769.d(14): `diag11769.foo!string.bar(dstring __param_0)`
8 ---
9 */
10
11 template foo(T)
12 {
13 void bar(wstring) {}
14 void bar(dstring) {}
15 }
16 void main()
17 {
18 foo!string.bar("abc");
19 }