aboutsummaryrefslogtreecommitdiff
path: root/test/typeswitch.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-11-13 22:58:08 -0500
committerRuss Cox <rsc@golang.org>2011-11-13 22:58:08 -0500
commit5bb54b8e9cd810d378397bae464f8933509e62bc (patch)
treecc49af668faa74c1f3eb55e3978e14844bc1bbc0 /test/typeswitch.go
parentefb74460c366286cf17225874c7d6333542647bc (diff)
downloadgo-5bb54b8e9cd810d378397bae464f8933509e62bc.tar.gz
go-5bb54b8e9cd810d378397bae464f8933509e62bc.zip
gc: remove func, map compare
R=ken, ken CC=golang-dev https://golang.org/cl/5373079
Diffstat (limited to 'test/typeswitch.go')
-rw-r--r--test/typeswitch.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/typeswitch.go b/test/typeswitch.go
index 83fb0985a9..aa911f9b62 100644
--- a/test/typeswitch.go
+++ b/test/typeswitch.go
@@ -82,9 +82,9 @@ func main() {
case []int:
assert(x[3] == 3 && i == Array, "array")
case map[string]int:
- assert(x == m && i == Map, "map")
+ assert(x != nil && i == Map, "map")
case func(i int) interface{}:
- assert(x == f && i == Func, "fun")
+ assert(x != nil && i == Func, "fun")
default:
assert(false, "unknown")
}
@@ -111,5 +111,4 @@ func main() {
default:
assert(false, "switch 4 unknown")
}
-
}