Experimental type-checking support for @isolated(any) function types.

This commit is contained in:
John McCall
2024-02-06 22:54:27 -05:00
parent 78cf572633
commit 2f8a33cf0a
50 changed files with 760 additions and 95 deletions

View File

@@ -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: