Skip to content

Don't StackOverflow when printing RecursiveType structure. #22859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2025

Conversation

TomasMikula
Copy link
Contributor

Fixes #22649.

The printed representation looks like this:

RecursiveType(rec12 => ... RecursiveThis(<rec12>) ...)

@jchyb
Copy link
Contributor

jchyb commented May 13, 2025

Hi @TomasMikula! Thank you for the fix, and bringing attention to this in the duplicate issue. The fix looks good, and the CI failures seem spurious and unrelated to anything, but I am unable to rerun it now. Would you be able to rebase it onto main and push this here (to rerun the CI). Alternatively I could also do that, so let me know if you would prefer that.

@TomasMikula
Copy link
Contributor Author

@jchyb Rebased, let's see how the CI goes.

Copy link
Contributor

@jchyb jchyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@jchyb jchyb merged commit 16a67dc into scala:main May 14, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StackOverflowError in TypeReprStructure printer for structural type with type member
3 participants