[Typed Throws]: Crash with SIL assertion when casting to error type #69982
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
When using the Typed Throws evolution toolchain, casting to an error type results in a SIL assertion.
Steps to reproduce
catch
:as! Serializer.Failure
".Expected behavior
Successful compilation, even if it's not really a correct fixit.
Actual behavior
The text was updated successfully, but these errors were encountered: