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, 4 insertions, 3 deletions
diff --git a/test/fixedbugs/bug196.go b/test/fixedbugs/bug196.go
index ea8ab0dc1..8cb9c9990 100644
--- a/test/fixedbugs/bug196.go
+++ b/test/fixedbugs/bug196.go
@@ -13,11 +13,12 @@ var i int
func multi() (int, int) { return 1, 2 }
func xxx() {
- var c chan int
- x, ok := <-c
+ //TODO(rsc): uncomment when this syntax is valid for receive+check closed
+ // 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