vxx2 / vlib / v / checker / tests / if_match_result.vv
19 lines · 18 sloc · 192 bytes · 0b843b801f030f8727c73c4d7b318525c3383f95
Raw
1// missing results
2_ = match 4 {
3 1 {}
4 else {}
5}
6_ = if true {
7} else {
8}
9
10// void results
11_ = match 4 {
12 1 { println('') }
13 else { exit(0) }
14}
15_ = if true {
16 println('')
17} else {
18 exit(0)
19}
20