1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/parser/tests/select_else_1.vv

19 lines
203 B
V

import time
fn f3_bad(ch1 chan int) {
a := 5
select {
b := <-ch1 {
println(b)
}
else {
println("shouldn't get here")
}
30 * time.millisecond {
println('bad')
}
}
}
fn main() {}