mirror of
https://github.com/golang/go
synced 2024-11-11 16:41:37 -07:00
test: add test for issue 24755
Fixes #24755 Change-Id: I00b276c5c2acb227d42a069d1af6027e4b499d31 Reviewed-on: https://go-review.googlesource.com/c/go/+/613115 Auto-Submit: Keith Randall <khr@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Tim King <taking@google.com> Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
This commit is contained in:
parent
8343980c70
commit
f117d1c9b5
19
test/fixedbugs/issue24755.go
Normal file
19
test/fixedbugs/issue24755.go
Normal file
@ -0,0 +1,19 @@
|
||||
// errorcheck
|
||||
|
||||
// Copyright 2024 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 p
|
||||
|
||||
type I interface {
|
||||
F()
|
||||
}
|
||||
|
||||
type T struct {
|
||||
}
|
||||
|
||||
const _ = I((*T)(nil)) // ERROR "is not constant"
|
||||
|
||||
func (*T) F() {
|
||||
}
|
Loading…
Reference in New Issue
Block a user