mirror of
https://github.com/golang/go
synced 2024-11-27 03:41:22 -07:00
868a110c56
Otherwise, if -d=panic was set, check2 will treat already reported error as internal compiler error. For #43311 Fixes #44445 Change-Id: I5dbe06334666df21d9107396b9dcfdd905aa1e44 Reviewed-on: https://go-review.googlesource.com/c/go/+/294850 Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
14 lines
344 B
Go
14 lines
344 B
Go
// errorcheck -d=panic
|
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
// Issue 2623
|
|
var m = map[string]int{
|
|
"abc": 1,
|
|
1: 2, // ERROR "cannot use 1.*as type string in map key|incompatible type|cannot convert"
|
|
}
|