You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@JicLotus Thanks for volunteering. If you'd like to work on this, feel free. I do want to caution though that this is likely to be a fairly subtle and involved part of the compiler.
The problem is that we recursively evaluate type declarations as needed. I think we'll need to undo this and instead evaluate type declarations in a two pass algorithm:
Set up a TFORW type for each package-scoped declared type and associate the Sym with that type.
Resolve each type declaration and assign the TFORW type's underlying type.
I'm suspecting we'll also have to split constant evaluation into a separate pass too. I briefly touched on this idea in #13890 (comment). But it might be possible to fix this issue without doing that.
cmd/compile erroneously emits an "invalid recursive type alias" error for:
Related: #18640
The text was updated successfully, but these errors were encountered: