You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cat x.go:
package main
func main() {
var m map[int]int
delete(m, 0)
}
$ go run x.go
panic: runtime error: deletion of entry in nil map
With the recent spec change (rev d09a8b21b517), delete on nil maps is a no-op.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: