Source file test/fixedbugs/issue44432.go
Documentation: test/fixedbugs
1 // errorcheck -G=0 -d=panic 2 3 // Copyright 2021 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 m = map[string]int{ 10 "a": 1, 11 1: 1, // ERROR "cannot use 1.*as type string in map key" 12 2: 2, // ERROR "cannot use 2.*as type string in map key" 13 } 14