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-2908] Can't check sub minor version in #if swift(>=3.0.1) #45502

Closed
swift-ci opened this issue Oct 10, 2016 · 3 comments
Closed

[SR-2908] Can't check sub minor version in #if swift(>=3.0.1) #45502

swift-ci opened this issue Oct 10, 2016 · 3 comments
Labels
compiler directives Feature: compiler directives (#if, #warning, #error, etc.) compiler The Swift compiler in itself feature A feature request or implementation improvement

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Oct 10, 2016

Previous ID SR-2908
Radar rdar://problem/28786959
Original Reporter helge (JIRA User)
Type New Feature
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels New Feature
Assignee graydon (JIRA)
Priority Medium

md5: 96fcca4ea22d0f9014b661a2948c71c1

is duplicated by:

  • SR-3024 Cannot use #if swift(>=3.0.1) compiler directive

Issue Description:

To workaround differences between Swift 3.0.1 and Swift 3.0.0 (like SE-0107) it would have been nice to be able to use:

#if swift(>=3.0.1)  
..  
#else  
..  
#endif

Instead this throws:

{{helge@TrustySwift:\~/dev/Swift/tmp$ swift TestIt.swift  
TestIt.swift:8:17: error: expected named member of numeric literal  
#if swift(>=3.0.1)  
~~~ ^  
}}

Presumably the idea was that Swift 3.0.1 is not supposed to have any differences to Swift 3.0.0. But that obviously doesn't/won't/can't fly :-)

@swift-ci
Copy link
Collaborator Author

Comment by Myke Olson (JIRA)

@swift-ci create

@swift-ci
Copy link
Collaborator Author

Comment by Graydon Hoare (JIRA)

PR open: #5440

@swift-ci
Copy link
Collaborator Author

swift-ci commented Nov 9, 2016

Comment by Graydon Hoare (JIRA)

Merged (a while ago) 03029b6

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added improvement feature A feature request or implementation compiler directives Feature: compiler directives (#if, #warning, #error, etc.) and removed new feature labels Nov 12, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler directives Feature: compiler directives (#if, #warning, #error, etc.) compiler The Swift compiler in itself feature A feature request or implementation improvement
Projects
None yet
Development

No branches or pull requests

2 participants