| 1 | vlib/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 | |
| 6 | vlib/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 | |
| 13 | vlib/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 | |
| 20 | vlib/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) |
| 27 | Details: have (bool, bool, int literal) |
| 28 | want (bool) |
| 29 | vlib/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) |
| 36 | Details: have () |
| 37 | want (bool) |
| 38 | vlib/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 | } |
| 45 | Details: have (bool, bool, int literal) |
| 46 | want (bool, T) |
| 47 | vlib/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 | } |
| 53 | Details: have (bool) |
| 54 | want (bool, T) |
| 55 | |