Commit 0df58a4b authored by Shenghou Ma's avatar Shenghou Ma

test/nil.go: delete on nil maps no longer panics

Fix the build.

R=golang-dev
CC=golang-dev
https://golang.org/cl/6946044
parent 28a50c7f
......@@ -151,9 +151,6 @@ func maptest() {
shouldPanic(func() {
m[2] = 3
})
shouldPanic(func() {
delete(m, 2)
})
}
// nil slice
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment