vxx2 / vlib / v / checker / tests / match_ranges_not_same_cast_err.out
10 lines · 10 sloc · 336 bytes · a741db43f388822bd078daa617d285ed6cf7766b
Raw
1vlib/v/checker/tests/match_ranges_not_same_cast_err.vv:6:2: error: the low and high parts of a range expression, should have matching types
2 4 | c := u16(3)
3 5 | match c {
4 6 | a...b { println('1...5') }
5 | ~~~~~
6 7 | else { println('not 1...5') }
7 8 | }
8Details:
9 low part type: u16
10high part type: u8
11