Skip to content

Conversation

@WojciechMazur
Copy link
Contributor

Backports #20188 to the LTS branch.

PR submitted by the release tooling.
[skip ci]

odersky and others added 3 commits July 5, 2024 20:10
Fixes #19929

Two main changes:

 - In TypeErasure, throw a TypeError instead of a FatalError if a supertype of an applied
   type does not exist. That way, we get a proper error with a position.
 - Move some catch-and-rethrow logic from ReTyper to TreeChecker. ReTyper alreayd had special
   exceptions that disabled the logic for all uses of ReTyper except TreeChecker. Unfortunately
   the ReTyper override also disabled the special TypeError handling in Typer.

[Cherry-picked 822e792]
[Cherry-picked 4920146]
Base automatically changed from lts-20177 to lts-3.3 July 5, 2024 21:34
@WojciechMazur
Copy link
Contributor Author

No regressions detected in the community build up to lts-20227.

Reference

@WojciechMazur WojciechMazur merged commit 103e077 into lts-3.3 Jul 5, 2024
@WojciechMazur WojciechMazur deleted the lts-20188 branch July 5, 2024 21:34
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.

4 participants