]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: better error messages for calls
authorRobert Griesemer <gri@golang.org>
Fri, 21 Feb 2025 00:23:11 +0000 (16:23 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 25 Feb 2025 14:21:12 +0000 (06:21 -0800)
commit549a88fa53c4d7d5ad702cdc90b3f0c763deb12e
tree4e0536c841052b10d2a885eaeb4c862bac3efff8
parentd45d502fbb989e140c979b16837b1c2126dd18ab
go/types, types2: better error messages for calls

Provide the exact error cause instead of reporting a missing
core type.

For #70128.

Change-Id: I34bd401115742883cb6aef7997477473b2464abb
Reviewed-on: https://go-review.googlesource.com/c/go/+/651256
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/call.go
src/cmd/compile/internal/types2/under.go
src/go/types/call.go
src/go/types/under.go
src/internal/types/testdata/check/lookup1.go