diff options
author | Russ Cox <rsc@golang.org> | 2011-11-13 22:58:08 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-11-13 22:58:08 -0500 |
commit | 5bb54b8e9cd810d378397bae464f8933509e62bc (patch) | |
tree | cc49af668faa74c1f3eb55e3978e14844bc1bbc0 /test/closure.go | |
parent | efb74460c366286cf17225874c7d6333542647bc (diff) | |
download | go-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/closure.go')
-rw-r--r-- | test/closure.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/test/closure.go b/test/closure.go index 3033c02ed8..191514def4 100644 --- a/test/closure.go +++ b/test/closure.go @@ -76,7 +76,6 @@ func h() { func newfunc() func(int) int { return func(x int) int { return x } } - func main() { go f() check([]int{1, 4, 5, 4}) @@ -90,10 +89,6 @@ func main() { check([]int{100, 200, 101, 201, 500, 101, 201, 500}) x, y := newfunc(), newfunc() - if x == y { - println("newfunc returned same func") - panic("fail") - } if x(1) != 1 || y(2) != 2 { println("newfunc returned broken funcs") panic("fail") |