From 4e77e0f294c38c1cc10cd48053a1d8c462d9bb42 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 1 Feb 2012 07:31:00 -0800 Subject: [PATCH] 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 --- test/chan/select3.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } }) -- 2.50.0