]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: delay union element checks
authorRobert Griesemer <gri@golang.org>
Thu, 23 Sep 2021 23:53:21 +0000 (16:53 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 24 Sep 2021 00:30:36 +0000 (00:30 +0000)
commitc90ead97ad7542437079462e0b70ff7b3f8e7811
treebd05c3a7951ca7e2804d5d5b7f653a449b1c83e1
parent4e308d73ba3610838305997b6f4793c4f4dcfc4e
cmd/compile/internal/types2: delay union element checks

We cannot determine the underlying type right when parsing
a union term since it may lead to types that are not yet
fully set up.

Fixes #46461.

Change-Id: I1fcadb1dcef2160be2f088a4a34e99dbab01da67
Reviewed-on: https://go-review.googlesource.com/c/go/+/351969
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/testdata/fixedbugs/issue46461.go2
src/cmd/compile/internal/types2/typeset.go
src/cmd/compile/internal/types2/union.go