-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
Description
by hurtonm:
What steps will reproduce the problem? Try to compile the following program: package main import "fmt" type flag struct { a bool } func main() { var f flag c := make(chan bool) select { case f.a = <-c: fmt.Printf("%+v\n", f) } } What is the expected output? The file should compile. What do you see instead? select.go:13: syntax error: unexpected =, expecting : or comma select.go:16: syntax error: unexpected } Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? Debian Linux Which revision are you using? (hg identify) 31014c5bd9ea tip Please provide any additional information below.