]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: better error when selecting field on type rather than value
authorRobert Griesemer <gri@google.com>
Wed, 21 Jan 2026 22:40:04 +0000 (14:40 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 22 Jan 2026 00:01:08 +0000 (16:01 -0800)
commit2d37c2077854e225204a7c4c26c10453a20de6d1
tree83162c23ea6967e7c2d401646f466f14b50c0eec
parent455282911aba7512e2ba045ffd9244eb97756247
go/types, types2: better error when selecting field on type rather than value

Fixes #6814.

Change-Id: I659670998f8e89400d03d40189e8c54f7e705cdc
Reviewed-on: https://go-review.googlesource.com/c/go/+/738040
Reviewed-by: Alan Donovan <adonovan@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 Griesemer <gri@google.com>
src/cmd/compile/internal/types2/call.go
src/go/types/call.go
src/internal/types/testdata/check/expr3.go
src/internal/types/testdata/check/issues0.go
src/internal/types/testdata/fixedbugs/issue6814.go [new file with mode: 0644]