From: Shenghou Ma Date: Thu, 13 Dec 2012 18:19:33 +0000 (+0800) Subject: test/nil.go: delete on nil maps no longer panics X-Git-Tag: go1.1rc2~1635 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0df58a4b50b923a220b9fda8ef94bebd5cdc0f9f;p=gostls13.git test/nil.go: delete on nil maps no longer panics Fix the build. R=golang-dev CC=golang-dev https://golang.org/cl/6946044 --- diff --git a/test/nil.go b/test/nil.go index 9f7bcbb59f..6d90f5053a 100644 --- a/test/nil.go +++ b/test/nil.go @@ -151,9 +151,6 @@ func maptest() { shouldPanic(func() { m[2] = 3 }) - shouldPanic(func() { - delete(m, 2) - }) } // nil slice