]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/types2: record types for union subexpressions
authorRobert Griesemer <gri@golang.org>
Wed, 15 Dec 2021 19:42:58 +0000 (11:42 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 15 Dec 2021 20:26:19 +0000 (20:26 +0000)
commit07ed86c57bb2aa5656ad7ab8df9c8b5faf089cbd
tree92bda3b97ba00ef628083b4ab84ef3ab1dddb011
parent4cda05d41a8585c79bfe00f867ed3513672e69fa
cmd/compile/internal/types2: record types for union subexpressions

This is a port of CL 371757 from go/types to types2, with
minor adjustments for different error handling and AST.

It also names the added API test cases more consistently.
The same renaming was applied to the respective go/types
file.

Updates #50093

Change-Id: Iaa132106a197a207f831525432e62e9d452b17c9
Reviewed-on: https://go-review.googlesource.com/c/go/+/372475
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/api.go
src/cmd/compile/internal/types2/api_test.go
src/cmd/compile/internal/types2/union.go
src/go/types/api_test.go