Skip to content

Fix a crash if we had a dollar identifier as the second parameter label in a closure not followed by a colon #3104

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
Jun 16, 2025

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 16, 2025

There was a mismatch between the call to eat and at. Switch the pair to a consume(if:) to avoid the issue.

Fixes #3103

…el in a closure not followed by a colon

There was a mismatch between the call to `eat` and `at`. Switch the pair to a `consume(if:)` to avoid the issue.

Fixes swiftlang#3103
@ahoppen
Copy link
Member Author

ahoppen commented Jun 16, 2025

@swift-ci Please test

@hamishknight
Copy link
Contributor

@swift-ci please test Windows

@hamishknight hamishknight merged commit e8c3dcf into swiftlang:main Jun 16, 2025
28 checks passed
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.

Parser crashes on invalid type signature in closure
3 participants