v2 / vlib / v / checker / tests / function_count_of_args_mismatch_err.out
54 lines · 54 sloc · 1.69 KB · 3d60410b605d001e54f280070d5f952da9de1112
Raw
1vlib/v/checker/tests/function_count_of_args_mismatch_err.vv:1:9: notice: unused parameter: `b`
2 1 | fn test(b bool) {
3 | ^
4 2 | }
5 3 |
6vlib/v/checker/tests/function_count_of_args_mismatch_err.vv:4:13: notice: unused parameter: `b`
7 2 | }
8 3 |
9 4 | fn test2[T](b bool, v T) {
10 | ^
11 5 | }
12 6 |
13vlib/v/checker/tests/function_count_of_args_mismatch_err.vv:4:21: notice: unused parameter: `v`
14 2 | }
15 3 |
16 4 | fn test2[T](b bool, v T) {
17 | ^
18 5 | }
19 6 |
20vlib/v/checker/tests/function_count_of_args_mismatch_err.vv:8:13: error: expected 1 argument, but got 3
21 6 |
22 7 | fn main() {
23 8 | test(true, false, 1)
24 | ~~~~~~~~
25 9 | test()
26 10 | test2(true, false, 1)
27Details: have (bool, bool, int literal)
28 want (bool)
29vlib/v/checker/tests/function_count_of_args_mismatch_err.vv:9:2: error: expected 1 argument, but got 0
30 7 | fn main() {
31 8 | test(true, false, 1)
32 9 | test()
33 | ~~~~~~
34 10 | test2(true, false, 1)
35 11 | test2(true)
36Details: have ()
37 want (bool)
38vlib/v/checker/tests/function_count_of_args_mismatch_err.vv:10:21: error: expected 2 arguments, but got 3
39 8 | test(true, false, 1)
40 9 | test()
41 10 | test2(true, false, 1)
42 | ^
43 11 | test2(true)
44 12 | }
45Details: have (bool, bool, int literal)
46 want (bool, T)
47vlib/v/checker/tests/function_count_of_args_mismatch_err.vv:11:2: error: expected 2 arguments, but got 1
48 9 | test()
49 10 | test2(true, false, 1)
50 11 | test2(true)
51 | ~~~~~~~~~~~
52 12 | }
53Details: have (bool)
54 want (bool, T)
55