]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: fix incorrect result type of Checker.index
authorRobert Griesemer <gri@golang.org>
Wed, 21 Apr 2021 16:04:00 +0000 (09:04 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 21 Apr 2021 16:26:01 +0000 (16:26 +0000)
commitb8a359d984b9b16a405fa66011078a477c6e2da4
tree851fc585ff07bd08aa5c707c65838d4a41c4e144
parentf9e2dbbfc92fdc19c4e9412b318beb5294d91bff
cmd/compile/internal/types2: fix incorrect result type of Checker.index

While at it, add missing "invalid argument: " prefix
to a couple of local error messages, for consistency.

For #45667.

Change-Id: I814800b2f3f3750583e335c98a3f8e27030a9daa
Reviewed-on: https://go-review.googlesource.com/c/go/+/312309
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/types2/index.go