v2 / vlib / v / parser / tests / match_range_dotdot_err.out
7 lines · 7 sloc · 273 bytes · 86dfd3902fa851455e98b176a0abf5ff9dc6ab28
Raw
1vlib/v/parser/tests/match_range_dotdot_err.vv:3:4: error: match only supports inclusive (`...`) ranges, not exclusive (`..`)
2 1 | fn test_match() {
3 2 | match 5 {
4 3 | 0..10 { '0-9' }
5 | ~~
6 4 | else { 'other' }
7 5 | }
8