v2 / vlib / v / parser / tests / select_bad_key_3.vv
12 lines · 11 sloc · 140 bytes · 1e5627e777b8adb2045e8c283f4794aed2c0e19a
Raw
1fn f3_bad(ch1 chan int) {
2 select {
3 b := <-ch1 {
4 println(b)
5 }
6 println(7) {
7 println("shouldn't get here")
8 }
9 }
10}
11
12fn main() {}
13