]> Cypherpunks repositories - gostls13.git/commit
go/types: add errorcalls_test, apply it, and fix errorf call sites
authorRobert Griesemer <gri@golang.org>
Mon, 10 Oct 2022 20:13:14 +0000 (13:13 -0700)
committerRobert Griesemer <gri@google.com>
Tue, 11 Oct 2022 22:10:42 +0000 (22:10 +0000)
commite9fd40a866e9e47ba65976d4cfeaeef7eaf76266
tree5794842fbf7e24ca5dac5730577331e4575f2b59
parent140bc24445f3c86b61bfb4d924e1e26f477574a2
go/types: add errorcalls_test, apply it, and fix errorf call sites

The errorcalls_test makes sure that we use error instead of errorf
where possible. Copied from types2 and adjusted for go/types.

Change-Id: Ib0572308c87e4415bf89aec8d64e662abe94754b
Reviewed-on: https://go-review.googlesource.com/c/go/+/441958
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
13 files changed:
src/go/types/builtins.go
src/go/types/check.go
src/go/types/decl.go
src/go/types/errorcalls_test.go [new file with mode: 0644]
src/go/types/expr.go
src/go/types/index.go
src/go/types/interface.go
src/go/types/mono.go
src/go/types/resolver.go
src/go/types/signature.go
src/go/types/stmt.go
src/go/types/typexpr.go
src/go/types/version.go