| 1 | vlib/v/checker/tests/non_const_match_range_err.vv:6:2: error: match branch range expressions need the start value to be known at compile time (only enums, const or literals are supported) |
| 2 | 4 | |
| 3 | 5 | match 5 { |
| 4 | 6 | start...end { |
| 5 | | ~~~~~ |
| 6 | 7 | println(start) |
| 7 | 8 | } |
| 8 | vlib/v/checker/tests/non_const_match_range_err.vv:13:2: error: match branch range expressions need the start value to be known at compile time (only enums, const or literals are supported) |
| 9 | 11 | |
| 10 | 12 | a := match 5 { |
| 11 | 13 | start...end { |
| 12 | | ~~~~~ |
| 13 | 14 | 0 |
| 14 | 15 | } |
| 15 |