Files
swift-mirror/test/Distributed/distributed_actor_sending_thunks.swift
Allan Shortlidge 75bad99f78 Tests: Remove -disable-availability-checking in Distributed tests.
Use the `%target-swift-5.X-abi-triple` substitutions to compile the tests for
deployment to the minimum OS versions required for the APIs used in the tests,
instead of disabling availability checking.
2024-10-20 09:07:13 -07:00

31 lines
985 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -target %target-swift-5.7-abi-triple %S/Inputs/FakeDistributedActorSystems.swift
// RUN: %target-swift-frontend -I %t -emit-sil -strict-concurrency=complete -target %target-swift-5.7-abi-triple -verify %s -o /dev/null
// REQUIRES: concurrency
// REQUIRES: asserts
// REQUIRES: distributed
import Distributed
import FakeDistributedActorSystems
typealias DefaultDistributedActorSystem = FakeActorSystem
final class NonSendableKlass {}
extension NonSendableKlass : Codable {}
@MainActor func transferToMain<T>(_ t: T) async {}
// ==== ------------------------------------------------------------------------
distributed actor MyDistributedActor {
let x = NonSendableKlass()
distributed func transferActorIsolatedArgIntoClosure(
_ notSendableParamToDistributedFunc: NonSendableKlass) async {}
}