mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In the accepted proposal for SE-0421, `next(_:)` became `next(isolation:)`. Some of the references to that method in the codebase need to be updated accordingly.
10 lines
284 B
Swift
10 lines
284 B
Swift
// RUN: %target-swift-frontend -strict-concurrency=complete -dump-ast %s | %FileCheck %s
|
|
// REQUIRES: concurrency, OS=macosx
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
func f<S: AsyncSequence>(s: S) async throws {
|
|
// CHECK-NOT: next(isolation:)
|
|
// CHECK: next()
|
|
for try await x in s { }
|
|
}
|