Skip to content

Remove __FILE__ et al as keywords. #62512

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

Conversation

DougGregor
Copy link
Member

These were keywords prior to Swift 2, and have only been kept around as keywords to provide a custom error message to rewrite to #file et al. It's incorrect to keep them as keywords, and that error should be implemented differently if we care about it.

These were keywords prior to Swift 2, and have only been kept around as
keywords to provide a custom error message to rewrite to `#file` et
al. It's incorrect to keep them as keywords, and that error should be
implemented differently if we care about it.
@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#1135

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#1135

@swift-ci please smoke test macOS

@DougGregor DougGregor merged commit 0fac90d into swiftlang:main Dec 12, 2022
@DougGregor DougGregor deleted the remove-double-underscored-file branch December 12, 2022 00:58
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.

1 participant