Skip to content
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

Fix deprecated message it cannot handle in swift6 (in 5 mode) #46

Closed
wants to merge 2 commits into from

Conversation

sidepelican
Copy link

When using swift-language-mode 5 with Swift 6, I can't handle the deprecated message displayed for ServiceContext.withValue.
The conditional #if swift(>=6.0) is only effective with swift-language-mode 6 and not with mode 5. I believe the correct specification is #if compiler(>=6.0).
Additionally, the deprecated message always appears in Swift 5, which I also cannot handle.

This PR fix the issue so that warnings do not appear in swift-language-mode 5 and swift-language-mode 6 of Swift 6, as well as in Swift 5.10.

@glbrntt glbrntt requested a review from ktoso November 6, 2024 16:19
@FranzBusch FranzBusch added the 🔨 semver/patch No public API change. label Nov 22, 2024
@sidepelican
Copy link
Author

partially solved in #47

@sidepelican
Copy link
Author

Fix the remaining errors at #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants