vxx2 / vlib / v / checker / tests / const_match_mismatch_end_range_err.out
54 lines · 54 sloc · 1.72 KB · 1512486d01d4205e7b67ebd679238fa45cd348af
Raw
1vlib/v/checker/tests/const_match_mismatch_end_range_err.vv:6:2: error: the range type and the match condition type should match
2 4 |
3 5 | match 5 {
4 6 | 0...end {
5 | ~~~~~~~
6 7 | println(start)
7 8 | }
8Details:
9match condition type: int
10 range type: rune
11vlib/v/checker/tests/const_match_mismatch_end_range_err.vv:9:2: error: the range type and the match condition type should match
12 7 | println(start)
13 8 | }
14 9 | `a`...start {
15 | ~~~~~~~~~~~
16 10 | println(end)
17 11 | }
18Details:
19match condition type: int
20 range type: rune
21vlib/v/checker/tests/const_match_mismatch_end_range_err.vv:9:2: error: the start value `97` should be lower than the end value `12`
22 7 | println(start)
23 8 | }
24 9 | `a`...start {
25 | ~~~~~~~~~~~
26 10 | println(end)
27 11 | }
28vlib/v/checker/tests/const_match_mismatch_end_range_err.vv:16:2: error: the range type and the match condition type should match
29 14 |
30 15 | a := match 5 {
31 16 | 0...end {
32 | ~~~~~~~
33 17 | 1
34 18 | }
35Details:
36match condition type: int
37 range type: rune
38vlib/v/checker/tests/const_match_mismatch_end_range_err.vv:19:2: error: the range type and the match condition type should match
39 17 | 1
40 18 | }
41 19 | `a`...start {
42 | ~~~~~~~~~~~
43 20 | `a`
44 21 | }
45Details:
46match condition type: int
47 range type: rune
48vlib/v/checker/tests/const_match_mismatch_end_range_err.vv:19:2: error: the start value `97` should be lower than the end value `12`
49 17 | 1
50 18 | }
51 19 | `a`...start {
52 | ~~~~~~~~~~~
53 20 | `a`
54 21 | }
55