]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: delay fillinMethods to deal with mutually-recursive types
authorDan Scales <danscales@google.com>
Wed, 18 Aug 2021 13:28:40 +0000 (06:28 -0700)
committerDan Scales <danscales@google.com>
Fri, 27 Aug 2021 01:42:38 +0000 (01:42 +0000)
commitd7e2e2ec2b2a11c2bfb98a27c03d0dccba62c4fb
tree3731dfd4abcf85abbfffeee598be743fd814d75e
parentc92759978372ffc354f83e08b1dd6fa496e9b545
cmd/compile: delay fillinMethods to deal with mutually-recursive types

We need to delay fillinMethods until we get to a top-level type, so we
know all the TFORW types have been filled in, and we can do the
substitutions required by fillinMethods.

Fixes #47710

Change-Id: I298de7e7753ed31a2c2b1ff04f35177a8afc7a66
Reviewed-on: https://go-review.googlesource.com/c/go/+/345149
Trust: Dan Scales <danscales@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/noder/irgen.go
src/cmd/compile/internal/noder/types.go
src/cmd/compile/internal/reflectdata/reflect.go
test/typeparam/issue47710.go [new file with mode: 0644]