Skip to content
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

Let show behave more robustly for Recheck #21678

Merged
merged 2 commits into from
Oct 1, 2024
Merged

Conversation

bracevac
Copy link
Contributor

The pretty-printing logic for a Recheck phase
applies the phase to the tree. But if there was
a type error, then the pretty printing would
have previously crashed the compiler.

Fixes #21646

The pretty-printing logic for a Recheck phase
applies the phase to the tree. But if there was
a type error, then the pretty printing would
have previously crashed the compiler.
@bracevac bracevac requested a review from odersky September 30, 2024 18:16
@bracevac
Copy link
Contributor Author

It's still a somewhat unsatisfying solution to print the original tree. Maybe it's better to to localize further and print as much of the rechecked tree as possible?

@odersky
Copy link
Contributor

odersky commented Oct 1, 2024

Yes, more localized trees would help, I guess. I think you can do that by moving the try to addRecheckedTypes.

@odersky odersky merged commit c0974f6 into scala:main Oct 1, 2024
28 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.

Compiler Crashes when Upper-Bounding a Class' Type Parameter with caps.Capability under -Xprint:cc
2 participants