This commit is contained in:
Yang Hau 2025-06-20 15:36:40 -04:00 committed by GitHub
commit aec9a59d86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4045 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,21 @@
// errorcheck
// Copyright 2021 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.
// Issue 43673
package main
type I interface {
M()
}
type T struct{}
func (t *T) M() {}
func main() {
var i I
_ = i.(*I) // ERROR "*I does not implement I (but I does)"
}