Skip to content

Commit edc4360

Browse files
committed
[Test] Fix protocol_conformance_collision.swift availability check.
1 parent 2193597 commit edc4360

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/Runtime/protocol_conformance_collision.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ func firstHashValue(_ x: P) -> Int {
4747
}
4848

4949
let osHasWorkaround: Bool
50-
if #available(macOS 11.3, iOS 14.5, tvOS 14.5, watchOS 7.4, *) {
50+
// These are deliberately not the standard 9999, as we don't want to hit the
51+
// special case where it's always available, and we don't want this check to be
52+
// rewritten in any find/replace operations.
53+
// DO NOT CHANGE TO REAL VERSIONS
54+
if #available(macOS 9998, iOS 9998, tvOS 9998, watchOS 9998, *) {
5155
osHasWorkaround = true
5256
} else {
5357
osHasWorkaround = false

0 commit comments

Comments
 (0)