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

[SR-13730] Langauge Reference is incomplete for operating system conditional compilation #56127

Closed
swift-ci opened this issue Oct 13, 2020 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. documentation

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-13730
Radar rdar://problem/70298063
Original Reporter BenLeggiero (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s
Labels Bug, Documentation
Assignee None
Priority Medium

md5: 95b1bdcca5f32408b116cd8c1e58ea43

Issue Description:

The Swift Language Reference provides two distinct lists of operating systems which are supported in the os() platform condition:

[Statements - Conditional Compilation Block](https://docs.swift.org/swift-book/ReferenceManual/Statements.html#ID539)
[Statements - GRAMMAR OF A CONDITIONAL COMPILATION BLOCK](https://docs.swift.org/swift-book/ReferenceManual/Statements.html#grammar_operating-system)

So one has Linux and the other doesn't. I've also found that it accepts Windows. These lists should both reflect all the arguments that the os() condition accepts.

@typesanitizer
Copy link

@swift-ci create

@swift-ci
Copy link
Collaborator Author

Comment by Alex Martini (JIRA)

This table has been updated in the latest version of TSPL:

https://docs.swift.org/swift-book/ReferenceManual/Statements.html#ID539

Thanks for highlighting this issue!

@swift-ci
Copy link
Collaborator Author

Comment by Ky (JIRA)

Awesome, amartini (JIRA User)![]( Glad I could help)

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. documentation
Projects
None yet
Development

No branches or pull requests

2 participants