| 1 | vlib/v/checker/tests/fixed_array_builtin_method_args_err.vv:4:11: error: `.index()` expected 1 argument, but got 0 |
| 2 | 2 | arr := [1, 2, 3]! |
| 3 | 3 | |
| 4 | 4 | _ := arr.index() |
| 5 | | ~~~~~~~ |
| 6 | 5 | _ := arr.index('hello') |
| 7 | 6 | _ := arr.contains() |
| 8 | vlib/v/checker/tests/fixed_array_builtin_method_args_err.vv:5:17: error: cannot use `string` as `int` in argument 1 to `.index()` |
| 9 | 3 | |
| 10 | 4 | _ := arr.index() |
| 11 | 5 | _ := arr.index('hello') |
| 12 | | ~~~~~~~ |
| 13 | 6 | _ := arr.contains() |
| 14 | 7 | _ := arr.contains('hello') |
| 15 | vlib/v/checker/tests/fixed_array_builtin_method_args_err.vv:6:11: error: `.contains()` expected 1 argument, but got 0 |
| 16 | 4 | _ := arr.index() |
| 17 | 5 | _ := arr.index('hello') |
| 18 | 6 | _ := arr.contains() |
| 19 | | ~~~~~~~~~~ |
| 20 | 7 | _ := arr.contains('hello') |
| 21 | 8 | _ := arr.any() |
| 22 | vlib/v/checker/tests/fixed_array_builtin_method_args_err.vv:7:20: error: cannot use `string` as `int` in argument 1 to `.contains()` |
| 23 | 5 | _ := arr.index('hello') |
| 24 | 6 | _ := arr.contains() |
| 25 | 7 | _ := arr.contains('hello') |
| 26 | | ~~~~~~~ |
| 27 | 8 | _ := arr.any() |
| 28 | 9 | _ := arr.any(22) |
| 29 | vlib/v/checker/tests/fixed_array_builtin_method_args_err.vv:8:11: error: `.any` expected 1 argument, but got 0 |
| 30 | 6 | _ := arr.contains() |
| 31 | 7 | _ := arr.contains('hello') |
| 32 | 8 | _ := arr.any() |
| 33 | | ~~~~~ |
| 34 | 9 | _ := arr.any(22) |
| 35 | 10 | _ := arr.all() |
| 36 | vlib/v/checker/tests/fixed_array_builtin_method_args_err.vv:9:15: error: invalid expression, expected infix expr, lambda or function |
| 37 | 7 | _ := arr.contains('hello') |
| 38 | 8 | _ := arr.any() |
| 39 | 9 | _ := arr.any(22) |
| 40 | | ~~ |
| 41 | 10 | _ := arr.all() |
| 42 | 11 | _ := arr.all('hello') |
| 43 | vlib/v/checker/tests/fixed_array_builtin_method_args_err.vv:10:11: error: `.all` expected 1 argument, but got 0 |
| 44 | 8 | _ := arr.any() |
| 45 | 9 | _ := arr.any(22) |
| 46 | 10 | _ := arr.all() |
| 47 | | ~~~~~ |
| 48 | 11 | _ := arr.all('hello') |
| 49 | 12 | } |
| 50 | vlib/v/checker/tests/fixed_array_builtin_method_args_err.vv:11:15: error: type mismatch, should use e.g. `all(it > 2)` |
| 51 | 9 | _ := arr.any(22) |
| 52 | 10 | _ := arr.all() |
| 53 | 11 | _ := arr.all('hello') |
| 54 | | ~~~~~~~ |
| 55 | 12 | } |
| 56 | |