Skip to content

Don't always treat a closure following a variable declaration as an accessor block #2825

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 1 commit into from
Aug 27, 2024

Conversation

DougGregor
Copy link
Member

Introduce some lookahead to make sure we actually have something that looks like an accessor block when the { is on the next line, matching what the C++ parser does.

Fixes swiftlang/swift#76089

…ccessor block

Introduce some lookahead to make sure we actually have something that
looks like an accessor block when the `{` is on the next line, matching what
the C++ parser does.

Fixes swiftlang/swift#76089
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit 92b9fa1 into swiftlang:main Aug 27, 2024
3 checks passed
@DougGregor DougGregor deleted the accessor-lookahead branch August 27, 2024 03:51
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.

error: new Swift parser generated errors for code that C++ parser accepted
2 participants