]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: mention go.mod file when using undeclared any
authorRobert Griesemer <gri@golang.org>
Tue, 24 May 2022 00:26:24 +0000 (17:26 -0700)
committerRobert Griesemer <gri@google.com>
Tue, 24 May 2022 16:05:16 +0000 (16:05 +0000)
commiteb3ac1f5a471c07a84353ae693024a251db9845f
tree2c42bfa4b1d3bd5e099546108a9b6a27587641f5
parent62e130226767a088ace196da90a774c9a9d14689
cmd/compile/internal/types2: mention go.mod file when using undeclared any

Use the existing versionErrorf mechanism to report use of undeclared
any and comparable.

Also, port versionErrorf mechanism to go/types and use it in this
case as well.

Adjust tests as needed.

For #52880.

Change-Id: I6a646f16a849692ee0cb57e362d5f3d77e2c25f9
Reviewed-on: https://go-review.googlesource.com/c/go/+/407896
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/testdata/fixedbugs/issue46090.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue47818.go
src/cmd/compile/internal/types2/typexpr.go
src/go/types/errors.go
src/go/types/testdata/fixedbugs/issue46090.go
src/go/types/testdata/fixedbugs/issue47818.go
src/go/types/typexpr.go