Skip to content

[Test] Fix protocol_conformance_collision.swift availability check. #38008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion test/Runtime/protocol_conformance_collision.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ func firstHashValue(_ x: P) -> Int {
}

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