mirror of https://github.com/golang/go.git
go/analysis/passes/errorsas: avoid type param on RHS of type decl
With CL 360758, this will be a type-checker error. Change-Id: Ic37c4bc671b707751fe22100bb525c91b5d5a5f2 Reviewed-on: https://go-review.googlesource.com/c/tools/+/360834 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Robert Griesemer <gri@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
058ed05631
commit
1ba8fdbde1
|
|
@ -8,7 +8,7 @@ package a
|
|||
|
||||
import "errors"
|
||||
|
||||
type myError[T any] T
|
||||
type myError[T any] struct{ t T }
|
||||
|
||||
func (myError[T]) Error() string { return "" }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue