We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 453fd22 commit e27ea12Copy full SHA for e27ea12
test/Concurrency/sr15049.swift renamed to test/Concurrency/issue-57376.swift
@@ -1,6 +1,8 @@
1
// RUN: %target-typecheck-verify-swift -disable-availability-checking -strict-concurrency=targeted
2
// REQUIRES: concurrency
3
4
+// https://github.com/apple/swift/issues/57376
5
+
6
func testAsyncSequenceTypedPatternSendable<Seq: AsyncSequence>(_ seq: Seq) async throws where Seq.Element == Int, Seq: Sendable {
7
async let result: Int = seq.reduce(0) { $0 + $1 } // OK
8
// expected-warning@-1{{immutable value 'result' was never used; consider replacing with '_' or removing it}}
0 commit comments