summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug196.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/bug196.go')
-rw-r--r--test/fixedbugs/bug196.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/fixedbugs/bug196.go b/test/fixedbugs/bug196.go
index 8cb9c9990..ea8ab0dc1 100644
--- a/test/fixedbugs/bug196.go
+++ b/test/fixedbugs/bug196.go
@@ -13,12 +13,11 @@ var i int
func multi() (int, int) { return 1, 2 }
func xxx() {
- //TODO(rsc): uncomment when this syntax is valid for receive+check closed
- // var c chan int
- // x, ok := <-c
+ var c chan int
+ x, ok := <-c
var m map[int]int
- x, ok := m[1]
+ x, ok = m[1]
var i interface{}
var xx int