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:
Robert Findley 2021-11-02 13:57:57 -04:00
parent 058ed05631
commit 1ba8fdbde1
1 changed files with 1 additions and 1 deletions

View File

@ -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 "" }