1
1
mirror of https://github.com/github/semantic.git synced 2024-12-18 20:31:55 +03:00
semantic/test/fixtures/go/corpus/select-statements.B.go

24 lines
269 B
Go
Raw Normal View History

2017-02-23 21:06:49 +03:00
package main
func main() {
select {
case a := <-c:
println(x)
case b <- c:
println(5)
case <-time.After(2):
println(6)
2017-11-15 21:10:14 +03:00
n++
if v {
waitDone <- result{n, v}
return
}
default:
return
2017-02-23 21:06:49 +03:00
}
2017-11-15 01:04:06 +03:00
select {
case <-channel:
case <-timeout:
}
2017-02-23 21:06:49 +03:00
}