Skip to content

Restrict use of a new overload of contains() to Apple platforms that have it. #970

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
merged 1 commit into from
Feb 21, 2025

Conversation

grynspan
Copy link
Contributor

We have one test that uses a newer overload of contains() that doesn't exist on older Apple platforms. This PR ensures that our use of that method is constrained to platforms that have it.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

…t have it.

We have one test that uses a newer overload of [`contains()`](https://developer.apple.com/documentation/swift/collection/contains(_:))
that doesn't exist on older Apple platforms. This PR ensures that our use of
that method is constrained to platforms that have it.
@grynspan grynspan added bug 🪲 Something isn't working darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support labels Feb 21, 2025
@grynspan grynspan added this to the Swift 6.x milestone Feb 21, 2025
@grynspan grynspan self-assigned this Feb 21, 2025
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan
Copy link
Contributor Author

@swift-ci test Linux

@grynspan grynspan merged commit c488e8f into main Feb 21, 2025
3 checks passed
@grynspan grynspan deleted the jgrynspan/contains-availability branch February 21, 2025 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants