Swift: extract UnreachableExpr

This commit is contained in:
Paolo Tranquilli
2025-04-14 10:34:53 +02:00
parent 9473543933
commit fa6deaf87a
14 changed files with 147 additions and 7 deletions

View File

@@ -1457,3 +1457,9 @@ class ActorIsolationErasureExpr(ImplicitConversionExpr):
A conversion that erases the actor isolation of an expression with `@isolated(any)` function
type.
"""
class UnreachableExpr(ImplicitConversionExpr):
"""
A conversion from the uninhabited type to any other type. It's never evaluated.
"""