mirror of
https://github.com/golang/go.git
synced 2025-11-01 09:10:57 +00:00
Revert "cmd/compile: restore test/nested.go test cases"
This reverts CL 424854. Reason for revert: broke misc/cgo/stdio.TestTestRun on several builders. Will re-land after CL 421879 is submitted. Change-Id: I2548c70d33d7c178cc71c1d491cd81c22660348f Reviewed-on: https://go-review.googlesource.com/c/go/+/425214 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Auto-Submit: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
7d1cab12c7
commit
503de697cb
2 changed files with 38 additions and 28 deletions
|
|
@ -104,11 +104,27 @@ func main() {
|
|||
F[V]()
|
||||
F[W]()
|
||||
|
||||
type X[A any] U[X[A]]
|
||||
|
||||
F[X[int]]()
|
||||
F[X[Int]]()
|
||||
F[X[GlobalInt]]()
|
||||
// TODO(go.dev/issue/54512): Restore these tests. They currently
|
||||
// cause problems for shaping with unified IR.
|
||||
//
|
||||
// For example, instantiating X[int] requires instantiating shape
|
||||
// type X[shapify(int)] == X[go.shape.int]. In turn, this requires
|
||||
// instantiating U[shapify(X[go.shape.int])]. But we're still in the
|
||||
// process of constructing X[go.shape.int], so we don't yet know its
|
||||
// underlying type.
|
||||
//
|
||||
// Notably, this is a consequence of unified IR writing out type
|
||||
// declarations with a reference to the full RHS expression (i.e.,
|
||||
// U[X[A]]) rather than its underlying type (i.e., int), which is
|
||||
// necessary to support //go:notinheap. Once go.dev/issue/46731 is
|
||||
// implemented and unified IR is updated, I expect this will just
|
||||
// work.
|
||||
//
|
||||
// type X[A any] U[X[A]]
|
||||
//
|
||||
// F[X[int]]()
|
||||
// F[X[Int]]()
|
||||
// F[X[GlobalInt]]()
|
||||
|
||||
for j, tj := range tests {
|
||||
for i, ti := range tests[:j+1] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue