mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
13 lines
361 B
Swift
13 lines
361 B
Swift
// RUN: %target-typecheck-verify-swift -strict-concurrency=complete -target %target-swift-5.7-abi-triple
|
|
// REQUIRES: concurrency
|
|
// REQUIRES: distributed
|
|
|
|
import Distributed
|
|
|
|
actor Charlie {
|
|
// should not cause sendable warnings, Worker is Sendable as implied by DA
|
|
func two<Worker>() -> Set<Worker> where Worker: DistributedActor {
|
|
[]
|
|
}
|
|
}
|