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
Avoid crash when superType does not exist after erasure
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]
0 commit comments