summaryrefslogtreecommitdiff
path: root/test/nilcheck.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/nilcheck.go')
-rw-r--r--test/nilcheck.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/nilcheck.go b/test/nilcheck.go
index 6879438e9c..e81db6dcb0 100644
--- a/test/nilcheck.go
+++ b/test/nilcheck.go
@@ -184,6 +184,7 @@ func f4(x *[10]int) {
func f5(m map[string]struct{}) bool {
// Existence-only map lookups should not generate a nil check
- _, ok := m[""]
+ tmp1, tmp2 := m[""] // ERROR "removed nil check"
+ _, ok := tmp1, tmp2
return ok
}