-
Notifications
You must be signed in to change notification settings - Fork 347
Use FoundationEssentials if it's available #674
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -9,9 +9,14 @@ | |||||
// | ||||||
//===----------------------------------------------------------------------===// | ||||||
|
||||||
#if swift(>=5.11) | ||||||
#if swift(>=6.0) | ||||||
|
#if swift(>=6.0) | |
#if compiler(>=6.0) |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#elseif swift(>=5.10) | |
#elseif compiler(>=5.10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok this actually exposes an issue - NSError
isn't part of Foundation Essentials. Are folks happy to remove that check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See previous comment that Swift 6 language mode needs to be enabled for these guards to work (which it is not in Package.swift).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be addressed by using
#if compiler
instead, as in provided suggestions.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks @MaxDesiatov!