1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag8101.d(57): Error: function `diag8101.f_0(int)` is not callable using argument types `()`
5 fail_compilation/diag8101.d(57): missing argument for parameter #1: `int`
6 fail_compilation/diag8101.d(58): Error: none of the overloads of `f_1` are callable using argument types `()`, candidates are:
7 fail_compilation/diag8101.d(33): `diag8101.f_1(int)`
8 fail_compilation/diag8101.d(34): `diag8101.f_1(int, int)`
9 fail_compilation/diag8101.d(59): Error: none of the overloads of `f_2` are callable using argument types `()`, candidates are:
10 fail_compilation/diag8101.d(36): `diag8101.f_2(int)`
11 fail_compilation/diag8101.d(37): `diag8101.f_2(int, int)`
12 fail_compilation/diag8101.d(38): `diag8101.f_2(int, int, int)`
13 fail_compilation/diag8101.d(39): `diag8101.f_2(int, int, int, int)`
14 fail_compilation/diag8101.d(40): `diag8101.f_2(int, int, int, int, int)`
15 fail_compilation/diag8101.d(59): ... (1 more, -v to show) ...
16 fail_compilation/diag8101.d(61): Error: template `diag8101.t_0` cannot deduce function from argument types `!()()`, candidates are:
17 fail_compilation/diag8101.d(43): `diag8101.t_0(T1)()`
18 fail_compilation/diag8101.d(62): Error: template `diag8101.t_1` cannot deduce function from argument types `!()()`, candidates are:
19 fail_compilation/diag8101.d(45): `diag8101.t_1(T1)()`
20 fail_compilation/diag8101.d(46): `diag8101.t_1(T1, T2)()`
21 fail_compilation/diag8101.d(63): Error: template `diag8101.t_2` cannot deduce function from argument types `!()()`, candidates are:
22 fail_compilation/diag8101.d(48): `diag8101.t_2(T1)()`
23 fail_compilation/diag8101.d(49): `diag8101.t_2(T1, T2)()`
24 fail_compilation/diag8101.d(50): `diag8101.t_2(T1, T2, T3)()`
25 fail_compilation/diag8101.d(51): `diag8101.t_2(T1, T2, T3, T4)()`
26 fail_compilation/diag8101.d(52): `diag8101.t_2(T1, T2, T3, T4, T5)()`
27 fail_compilation/diag8101.d(63): ... (1 more, -v to show) ...
28 ---
29 */
30
31 void f_0(int);
32
33 void f_1(int);
34 void f_1(int, int);
35
36 void f_2(int);
37 void f_2(int, int);
38 void f_2(int, int, int);
39 void f_2(int, int, int, int);
40 void f_2(int, int, int, int, int);
41 void f_2(int, int, int, int, int, int);
42
43 void t_0(T1)();
44
45 void t_1(T1)();
46 void t_1(T1, T2)();
47
48 void t_2(T1)();
49 void t_2(T1, T2)();
50 void t_2(T1, T2, T3)();
51 void t_2(T1, T2, T3, T4)();
52 void t_2(T1, T2, T3, T4, T5)();
53 void t_2(T1, T2, T3, T4, T5, T6)();
54
main()55 void main()
56 {
57 f_0();
58 f_1();
59 f_2();
60
61 t_0();
62 t_1();
63 t_2();
64 }
65