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

Merged
hamishknight merged 1 commit into
swiftlang:mainfrom
ahoppen:argument-label-crash
Jun 16, 2025
Merged

Fix a crash if we had a dollar identifier as the second parameter label in a closure not followed by a colon#3104
hamishknight merged 1 commit into
swiftlang:mainfrom
ahoppen:argument-label-crash

Conversation

@ahoppen

@ahoppen ahoppen commented Jun 16, 2025

Copy link
Copy Markdown
Member

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

ahoppen commented Jun 16, 2025

Copy link
Copy Markdown
Member Author

@swift-ci Please test

@hamishknight

Copy link
Copy Markdown
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