]> Cypherpunks repositories - gostls13.git/commit
go/types: match types2 errors for missing index expressions
authorRobert Griesemer <gri@golang.org>
Fri, 19 Aug 2022 00:25:58 +0000 (17:25 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 19 Aug 2022 19:39:51 +0000 (19:39 +0000)
commit84232b0b89a60d5f66156ddf5cbe9ab64dac4375
tree15be6e9c8927811bd27c0fb0bdbe12f1b4f14f58
parent6bedf4a2b45068c486c69a04410f2c2469152f2d
go/types: match types2 errors for missing index expressions

Use "middle" and "final" rather than "2nd" and "3rd" in error messages
for invalid slice expressions. This is the original compiler error
message and many tests check for this specific message.

For #54511.

Change-Id: I86eb739aa7218b7f393fab1ab402732cb9e9a1f6
Reviewed-on: https://go-review.googlesource.com/c/go/+/424906
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/go/parser/parser.go
src/go/parser/short_test.go
src/go/types/testdata/check/expr3.go