]> Cypherpunks repositories - gostls13.git/commit
go/types: delay union element checks
authorRobert Griesemer <gri@golang.org>
Fri, 24 Sep 2021 00:35:36 +0000 (17:35 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 24 Sep 2021 01:18:01 +0000 (01:18 +0000)
commit0f1159bf5429b7e2dc774b77be41a66b53d25c55
treec2d47524d55610862bd884aa8880c9ecc34a2b39
parent4dd5f0994f2e2079582876db4af1cba95fe3b6c2
go/types: delay union element checks

This is a clean port of CL 351969 from types2 to go/types
with a minor adjustment for error handling (provide an error
code).

For #46461.

Change-Id: I493dde12d8ccf86aa33f4913ac6e82f2eb459088
Reviewed-on: https://go-review.googlesource.com/c/go/+/351971
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/go/types/testdata/fixedbugs/issue46461.go2
src/go/types/typeset.go
src/go/types/union.go