Skip to content

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 4, 2025

…ental feature

Cherry-pick of #3087


  • Explanation:
    This is an alternative spelling of typealias DefaultIsolation = (MainActor | nonisolated) that was proposed as part of SE-0478.

    using declaration accepts an attribute or a modifier and currently could be used to set a default actor isolation per file, but could be extended to support other use-cases in the future.

    Implementation uses DefaultIsolationPerFile experimental feature flag to hide the syntax.

  • Resolves: rdar://152598259

  • Main Branch PR: [SwiftParser] SE-0478: Implement using declaration under an experim… #3087

  • Risk: Low. This is a new feature under an experimental flag which isn't enabled by default and currently has no adopters.

  • Reviewed By: @hamishknight @ahoppen

  • Testing: Added new test-cases to the test suite.

(cherry picked from commit 95bebf6)

…ental feature

This is an alternative spelling of `typealias DefaultIsolation = (MainActor | nonisolated)`
that was proposed as part of SE-0478.

`using` declaration accepts an attribute or a modifier and currently
could be used to set a default actor isolation per file, but could
be extended to support other use-cases in the future.

Implementation uses `DefaultIsolationPerFile` experimental feature
flag to hide the syntax.

(cherry picked from commit 95bebf6)
@xedin xedin added the SwiftParser Bugs in the (new) Parser written in Swift label Jun 4, 2025
@xedin xedin requested a review from a team as a code owner June 4, 2025 20:32
@xedin
Copy link
Contributor Author

xedin commented Jun 4, 2025

swiftlang/swift#81997
@swift-ci please test

@xedin xedin merged commit b1e9db4 into swiftlang:release/6.2 Jun 5, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SwiftParser Bugs in the (new) Parser written in Swift

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants