v2 / vlib / v / checker / tests / array_count_err.out
27 lines · 27 sloc · 897 bytes · be49e2bf6c9c61b7707e2f1e487b3714c8e1ba89
Raw
1vlib/v/checker/tests/array_count_err.vv:3:10: error: invalid expression, expected infix expr, lambda or function
2 1 | fn main() {
3 2 | a := []int{}
4 3 | a.count(1)
5 | ^
6 4 | a.count(1, 2)
7 5 | a.count('')
8vlib/v/checker/tests/array_count_err.vv:4:4: error: expected 1 argument, but got 2
9 2 | a := []int{}
10 3 | a.count(1)
11 4 | a.count(1, 2)
12 | ~~~~~~~~~~~
13 5 | a.count('')
14 6 | a.count()
15vlib/v/checker/tests/array_count_err.vv:5:10: error: type mismatch, should use e.g. `count(it > 2)`
16 3 | a.count(1)
17 4 | a.count(1, 2)
18 5 | a.count('')
19 | ~~
20 6 | a.count()
21 7 | }
22vlib/v/checker/tests/array_count_err.vv:6:4: error: expected 1 argument, but got 0
23 4 | a.count(1, 2)
24 5 | a.count('')
25 6 | a.count()
26 | ~~~~~~~
27 7 | }
28