Files
swift-mirror/test/Concurrency/async_for_each_back_deploy.swift
Allan Shortlidge 4224479a43 NFC: Update stale references to next(_:).
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.
2024-07-30 09:47:20 -07:00

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 { }
}