You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. What is a short input program that triggers the error?
func main() {
var i interface{} // if this is an int, this program compiles
c := make(chan int)
select {
case i = <-c: // error on this line
}
_ = i
}
2. What is the full compiler output?
main.go:7: select assignment must have receive on right hand side
3. What version of the compiler are you using? (Run it with the -V flag.)
6g version 6463+