v2 / vlib / v / checker / tests / non_const_match_range_err.out
14 lines · 14 sloc · 601 bytes · a9b41d298095cf7814e9597dfb0f6b9abdd1686b
Raw
1vlib/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 | }
8vlib/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