Skip to content

[5.5-05142021][Parse] Disallow use of actor as a declaration modifier #37551

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

Closed

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 21, 2021

Cherry-pick of (main) #37516, (5.5) #37550


  • Explanation:

Promote a warning into an error for declarations that use actor class syntax,
since actor is now a standalone contextual keyword and cannot be used as
a class declaration modifier.

Resolves: rdar://75753598
(cherry picked from commit aeddab4)

@xedin xedin added the r5.5 label May 21, 2021
@xedin
Copy link
Contributor Author

xedin commented May 21, 2021

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 9426f784c45fa7a8c19bfcfe600d9fecc8de89b9

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 9426f784c45fa7a8c19bfcfe600d9fecc8de89b9

`actor` is a standalone contextual keyword now and should
be treated as such, `actor class` is no longer allowed
and results in a parse error.

Resolves: rdar://75753598
(cherry picked from commit aeddab4)
@xedin xedin force-pushed the rdar-75753598-5.5-05142021 branch from 9426f78 to 697033b Compare May 21, 2021 04:42
@xedin
Copy link
Contributor Author

xedin commented May 21, 2021

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 697033b

@xedin
Copy link
Contributor Author

xedin commented May 21, 2021

@swift-ci please test macOS platform

@xedin
Copy link
Contributor Author

xedin commented May 21, 2021

@swift-ci please test Linux platform

@xedin
Copy link
Contributor Author

xedin commented May 21, 2021

@swift-ci please test Windows platform

@xedin xedin closed this May 26, 2021
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants