Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/named_arguments_ifti_error.d(17): Error: template `f` is not callable using argument types `!()(int, int)`
5 fail_compilation/named_arguments_ifti_error.d(13): Candidate is: `f(T, U)(T x, U y)`
6 fail_compilation/named_arguments_ifti_error.d(18): Error: template `f` is not callable using argument types `!()(int, int)`
7 fail_compilation/named_arguments_ifti_error.d(13): Candidate is: `f(T, U)(T x, U y)`
8 fail_compilation/named_arguments_ifti_error.d(19): Error: template `f` is not callable using argument types `!()(int)`
9 fail_compilation/named_arguments_ifti_error.d(13): Candidate is: `f(T, U)(T x, U y)`
10 ---
11 */
12
13 void f(T, U)(T x, U y) {}
14
15 void main()
16 {
17 f(x: 3, x: 3); // double assignment of x
18 f(y: 3, 3); // overflow past last parameter
19 f(y: 3); // skipping parameter x
20 }