]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: don't panic during interface completion
authorRobert Findley <rfindley@google.com>
Thu, 3 Aug 2023 14:07:09 +0000 (10:07 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 3 Aug 2023 18:53:57 +0000 (18:53 +0000)
commitd2ee7821d357a4e4948b9a6251e82b4ced9a1eae
tree2c857440f078cd93095d3595684f638c4caf34d5
parent499a12009938fe2ffff90775832b9d67ca3e46b2
go/types, types2: don't panic during interface completion

It should be possible for the importer to construct an invalid
interface, as would have been produced by type checking.

Fixes #61737

Change-Id: I72e063f4f1a6205d273a623acce2ec08c34c3cc2
Reviewed-on: https://go-review.googlesource.com/c/go/+/515555
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Findley <rfindley@google.com>
Reviewed-by: Olif Oftimis <oftimisolif@gmail.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/types2/api_test.go
src/cmd/compile/internal/types2/typeset.go
src/go/types/api_test.go
src/go/types/typeset.go