Source file test/fixedbugs/issue44432.go

     1  // errorcheck -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.*string.*in map"
    12  	2:   2, // ERROR "cannot use 2.*as.*string.*in map"
    13  }
    14  

View as plain text