]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: suppress index-out-of-bounds error on Unknown constants
authorMatthew Dempsky <mdempsky@google.com>
Thu, 22 Apr 2021 19:42:33 +0000 (12:42 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 22 Apr 2021 22:01:47 +0000 (22:01 +0000)
commit74059685fda0b60d539450ad6b7331ade838e90c
tree05bdb05c308c68fca17e76de68ec89f4ed20fa26
parentf7afdfd48383c4f0ea8653ea9f8c7b9a3d93abee
go/types: suppress index-out-of-bounds error on Unknown constants

Follow up to CL 312591, which was stumping rfindley and I for a
while. Credit to him for figuring out a repro and explaining the
correct solution.

Change-Id: Ib8578bba05f60fc41d382c34c5266d815441e7a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/312790
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Trust: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/go/types/expr.go
src/go/types/testdata/expr3.src