Source file test/fixedbugs/issue28085.go
1 // errorcheck 2 3 // Copyright 2018 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 package p 8 9 var _ = map[interface{}]int{ 10 0: 0, 11 0: 0, // ERROR "duplicate" 12 } 13 14 var _ = map[interface{}]int{ 15 interface{}(0): 0, 16 interface{}(0): 0, // ok 17 } 18 19 func _() { 20 switch interface{}(0) { 21 case 0: 22 case 0: // ERROR "duplicate" 23 } 24 25 switch interface{}(0) { 26 case interface{}(0): 27 case interface{}(0): // ok 28 } 29 } 30