Files
swift-mirror/test/Concurrency/unsafe_inherit_executor_lib.swift
Michael Gottesman cb46851194 [region-isolation] Rename the experimental feature to RegionBasedIsolation.
This ensures that the pass is called TransferNonSendable but the experimental
feature is RegionBasedIsolation.
2023-10-26 12:01:44 -07:00

20 lines
596 B
Swift

// RUN: %target-swift-frontend -emit-sil -verify -o /dev/null -disable-availability-checking %s -strict-concurrency=complete
// RUN: %target-swift-frontend -emit-sil -verify -o /dev/null -disable-availability-checking %s -strict-concurrency=complete -enable-experimental-feature RegionBasedIsolation
// REQUIRES: asserts
actor A {
func g() { }
func h() throws { }
func f() async throws {
await withTaskGroup(of: Int.self, returning: Void.self) { group in
g()
}
try await withThrowingTaskGroup(of: Int.self, returning: Void.self) { group in
try h()
}
}
}