1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00
semantic/test/fixtures/go/select-statements.A.go

15 lines
164 B
Go
Raw Normal View History

2017-02-23 21:06:49 +03:00
package main
func main() {
select {
case x := <-c:
println(x)
case y <- c:
println(5)
case <-time.After(1):
println(6)
default:
return
}
}