Commit 4e77e0f2 authored by Ian Lance Taylor's avatar Ian Lance Taylor

test: test that x := <-c accepts a general expression

The gccgo compiler used to fail to parse this.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5610051
parent 8dd3de4d
......@@ -197,13 +197,13 @@ func main() {
})
testBlock(never, func() {
select {
case x := <-closedch:
case x := (<-closedch):
_ = x
}
})
testBlock(never, func() {
select {
case x, ok := <-closedch:
case x, ok := (<-closedch):
_, _ = x, ok
}
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment