Skip to content

Add availability gating for async function and actor type definitions. #38510

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

Merged
merged 2 commits into from
Jul 21, 2021

Conversation

DougGregor
Copy link
Member

Implements rdar://80098709.

@DougGregor
Copy link
Member Author

@swift-ci please test and merge

// RUN: %target-swift-frontend -parse-stdlib -target x86_64-apple-macosx12 -typecheck %s
// REQUIRES: OS=macosx

func f() async { } // expected-error{{concurrency is only available in}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 👍🏼

@DougGregor
Copy link
Member Author

@swift-ci please test macOS

swiftlang/llvm-project#3115

@DougGregor
Copy link
Member Author

swiftlang/llvm-project#3115

@swift-ci please test macOS

1 similar comment
@DougGregor
Copy link
Member Author

swiftlang/llvm-project#3115

@swift-ci please test macOS

@DougGregor
Copy link
Member Author

swiftlang/llvm-project#3115

@swift-ci please test macOS

@DougGregor DougGregor merged commit b9cc312 into swiftlang:main Jul 21, 2021
@DougGregor DougGregor deleted the availability-gate-concurrency branch July 21, 2021 15:01
nate-chandler added a commit to nate-chandler/swift that referenced this pull request Jul 21, 2021
As of swiftlang#38510 -Xfrontend
-disable-availability-checking is needed.
nate-chandler added a commit to nate-chandler/swift that referenced this pull request Jul 21, 2021
As of swiftlang#38510 -Xfrontend
-disable-availability-checking is needed.
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