summaryrefslogtreecommitdiff
path: root/test/closure.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
commitdb8ca4b484a59db70309e99ca47315cfbc3ed1df (patch)
tree2b8d8891e102db77c7b7819e269970454a5eae5a /test/closure.go
parent80f8b0e3e5649890f41f80ccf6cc2da853ac1f9b (diff)
downloadgo-db8ca4b484a59db70309e99ca47315cfbc3ed1df.tar.gz
gc: remove func, map compare
R=ken, ken CC=golang-dev http://codereview.appspot.com/5373079
Diffstat (limited to 'test/closure.go')
-rw-r--r--test/closure.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/closure.go b/test/closure.go
index 3033c02ed..191514def 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")