mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
19 lines
205 B
V
19 lines
205 B
V
import time
|
|
|
|
fn f3_bad(ch1 chan int) {
|
|
a := 5
|
|
select {
|
|
b := <-ch1 {
|
|
println(b)
|
|
}
|
|
> 30 * time.millisecond {
|
|
println('bad')
|
|
}
|
|
else {
|
|
println("shouldn't get here")
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {}
|