mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Experimental type-checking support for @isolated(any) function types.
This commit is contained in:
@@ -7725,6 +7725,9 @@ ConstraintSystem::inferKeyPathLiteralCapability(KeyPathExpr *keyPath) {
|
||||
case ActorIsolation::NonisolatedUnsafe:
|
||||
break;
|
||||
|
||||
case ActorIsolation::Erased:
|
||||
llvm_unreachable("storage cannot have opaque isolation");
|
||||
|
||||
// A reference to an actor isolated state make key path non-Sendable.
|
||||
case ActorIsolation::ActorInstance:
|
||||
case ActorIsolation::GlobalActor:
|
||||
|
||||
Reference in New Issue
Block a user