| 1 | vlib/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 | } |
| 8 | Details: |
| 9 | match condition type: int |
| 10 | range type: rune |
| 11 | vlib/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 | } |
| 18 | Details: |
| 19 | match condition type: int |
| 20 | range type: rune |
| 21 | vlib/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 | } |
| 28 | vlib/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 | } |
| 35 | Details: |
| 36 | match condition type: int |
| 37 | range type: rune |
| 38 | vlib/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 | } |
| 45 | Details: |
| 46 | match condition type: int |
| 47 | range type: rune |
| 48 | vlib/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 | |