Skip to content

Add support for availability to @_specialize #39596

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

Conversation

aschwaighofer
Copy link
Contributor

@aschwaighofer aschwaighofer commented Oct 5, 2021

Allow specifying availability with an @_specialize attribute.

  @_specialize(exported: true, availability: macOS 10.50, iOS 13, *; where T == Int)
  public func testAvailability<T>(_ t: T) {}

rdar://74529439

@aschwaighofer aschwaighofer force-pushed the available_argument_for_at_specialize branch from fc0844e to 964c93e Compare October 5, 2021 21:46
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

1 similar comment
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Oct 5, 2021

Build failed
Swift Test Linux Platform
Git Sha - 234c2f41a66c7fcbca0a536b3f567ac6c6481d8b

@swift-ci
Copy link
Contributor

swift-ci commented Oct 6, 2021

Build failed
Swift Test OS X Platform
Git Sha - 234c2f41a66c7fcbca0a536b3f567ac6c6481d8b

@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Oct 6, 2021

Build failed
Swift Test Linux Platform
Git Sha - 758367628d6270a01550374364429f3cf8e3bdc3

@swift-ci
Copy link
Contributor

swift-ci commented Oct 6, 2021

Build failed
Swift Test OS X Platform
Git Sha - 758367628d6270a01550374364429f3cf8e3bdc3

@aschwaighofer aschwaighofer force-pushed the available_argument_for_at_specialize branch from 7583676 to cd7283d Compare October 6, 2021 11:55
@aschwaighofer
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

swift-ci commented Oct 6, 2021

Build failed
Swift Test OS X Platform
Git Sha - cd7283d

@aschwaighofer
Copy link
Contributor Author

test with swiftlang/swift-syntax#327
@swift-ci test macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants