Skip to content

Commit e27ea12

Browse files
committed
Gardening: Migrate test suite to GH issues (file names): Concurrency
1 parent 453fd22 commit e27ea12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/Concurrency/sr15049.swift renamed to test/Concurrency/issue-57376.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %target-typecheck-verify-swift -disable-availability-checking -strict-concurrency=targeted
22
// REQUIRES: concurrency
33

4+
// https://github.com/apple/swift/issues/57376
5+
46
func testAsyncSequenceTypedPatternSendable<Seq: AsyncSequence>(_ seq: Seq) async throws where Seq.Element == Int, Seq: Sendable {
57
async let result: Int = seq.reduce(0) { $0 + $1 } // OK
68
// expected-warning@-1{{immutable value 'result' was never used; consider replacing with '_' or removing it}}

0 commit comments

Comments
 (0)