Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: cannot compile valid (but esoteric) self-recursive interface #22825
This is just one case of whole class of errors of recursive types referring to themselves via an array type that depends on the size of an aspect of the recursive type.
A possible general solution might be to defer all array size computations to the end of type-checking, similarly to how we defer map key type-checking to the end.