mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
201 B
Swift
15 lines
201 B
Swift
// RUN: %target-swift-frontend -typecheck %s
|
|
|
|
// REQUIRES: concurrency
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
extension Actor {
|
|
func f() { }
|
|
|
|
func g(a: [Int]) {
|
|
a.forEach { i in
|
|
f()
|
|
}
|
|
}
|
|
}
|