From: Ian Lance Taylor Date: Wed, 1 Feb 2012 15:31:00 +0000 (-0800) Subject: test: test that x := <-c accepts a general expression X-Git-Tag: weekly.2012-02-07~147 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4e77e0f294c38c1cc10cd48053a1d8c462d9bb42;p=gostls13.git 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 --- diff --git a/test/chan/select3.go b/test/chan/select3.go index d919de3e0d..fd881c90e9 100644 --- a/test/chan/select3.go +++ b/test/chan/select3.go @@ -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 } })