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-14670] Support availability annotations in @differentiable attribute #57021

Open
rxwei opened this issue May 28, 2021 · 0 comments
Open

[SR-14670] Support availability annotations in @differentiable attribute #57021

rxwei opened this issue May 28, 2021 · 0 comments
Labels
compiler The Swift compiler in itself new feature

Comments

@rxwei
Copy link
Member

rxwei commented May 28, 2021

Previous ID SR-14670
Radar rdar://73466211
Original Reporter @rxwei
Type New Feature
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels New Feature
Assignee None
Priority Medium

md5: 1d3b84005f7bcbb72cdc5b7d73731207

Issue Description:

Extend the syntax to allow availability to be specified.

@differentiable(reverse, available(macOS 11.0, iOS 14.0, tvOS 14.0, *))
func foo(_ x: Float) -> Float {
    ...
}
@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself new feature
Projects
None yet
Development

No branches or pull requests

1 participant