Skip to content

Commit 9c0def0

Browse files
committed
Hm, why aren’t we detecting the broken stdlib on CI?
1 parent 541bd53 commit 9c0def0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Sources/_CollectionsUtilities/Array+WithContiguousStorage Compatibility.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@ extension Array {
3333
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
3434
if #available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *) {
3535
// The OS is too new to be affected by this bug. (>= 5.5 stdlib)
36+
print("Too new")
3637
return false
3738
}
38-
// guard #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13, *) else {
39-
// // The OS is too old to be affected by this bug. (< 5.1 stdlib)
40-
// return false
41-
// }
39+
guard #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13, *) else {
40+
// The OS is too old to be affected by this bug. (< 5.1 stdlib)
41+
print("Too old")
42+
return false
43+
}
44+
print("Affected")
4245
return true
4346
#else
4447
// Assume that other platforms aren't affected.

0 commit comments

Comments
 (0)