mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
13 lines
355 B
Swift
13 lines
355 B
Swift
// RUN: %target-typecheck-verify-swift -strict-concurrency=complete -disable-availability-checking
|
|
// 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 {
|
|
[]
|
|
}
|
|
}
|