commit | b631b8e674195f6cdeca363ccb01279f14b10f13 | [log] [tgz] |
---|---|---|
author | Robert Griesemer <gri@golang.org> | Wed Nov 20 13:57:23 2024 -0800 |
committer | Gopher Robot <gobot@golang.org> | Thu Nov 21 05:01:47 2024 +0000 |
tree | 1cbc0e41c68cf659a2dad57576f6e9d80f7abc10 | |
parent | a9428eab40f799c96c0de7385545c03d989d491a [diff] |
go/types, types: better error message position for invalid receiver errors Errors related to invalid receivers are based on the receiver base type. Position the error message at the receiver base type, not the receiver variable. Add an additional example with an (invalid) generic receiver type. Also, fix a panic when the code is run w/o Alias types enabled. Change-Id: I610df171e4c447bbe03b904937c12e4170508b3b Reviewed-on: https://go-review.googlesource.com/c/go/+/630376 Reviewed-by: Tim King <taking@google.com> Auto-Submit: Robert Griesemer <gri@google.com> Reviewed-by: Robert Findley <rfindley@google.com> Reviewed-by: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 4.0 Attribution license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.