From 5f88dc70060d3ba5f10a1f343654bc73b98656a9 Mon Sep 17 00:00:00 2001 From: Stuart Montgomery Date: Tue, 4 Nov 2025 09:58:43 -0600 Subject: [PATCH] Update the comment and bug ID explaining why a workaround in ConfirmationTests is still needed --- Tests/TestingTests/ConfirmationTests.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tests/TestingTests/ConfirmationTests.swift b/Tests/TestingTests/ConfirmationTests.swift index 2551513eb..454572edc 100644 --- a/Tests/TestingTests/ConfirmationTests.swift +++ b/Tests/TestingTests/ConfirmationTests.swift @@ -168,8 +168,10 @@ struct UnsuccessfulConfirmationTests { // MARK: - /// Needed since we don't have generic test functions, so we need a concrete -/// argument type for `confirmedOutOfRange(_:)`, but we can't write -/// `any RangeExpression & Sendable`. ([96960993](rdar://96960993)) +/// argument type for `confirmedOutOfRange(_:)`. Although we can now write +/// `any RangeExpression & Sequence & Sendable` as of Swift 6.2 +/// (per [swiftlang/swift#76705](https://github.com/swiftlang/swift/pull/76705)), +/// attempting to form an array of such values crashes at runtime. ([163980446](rdar://163980446)) protocol ExpectedCount: RangeExpression, Sequence, Sendable where Bound == Int, Element == Int {} extension ClosedRange: ExpectedCount {} extension PartialRangeFrom: ExpectedCount {}