Skip to content

fix: support when else with guard#563

Closed
tKe wants to merge 2 commits intofacebook:mainfrom
tKe:when-else-with-guard
Closed

fix: support when else with guard#563
tKe wants to merge 2 commits intofacebook:mainfrom
tKe:when-else-with-guard

Conversation

@tKe
Copy link
Copy Markdown
Contributor

@tKe tKe commented Oct 9, 2025

Currently attempting to format a when expression with an else if entry results in:

error: expected token: 'else'; generated if instead

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 9, 2025
@hick209
Copy link
Copy Markdown
Contributor

hick209 commented Oct 15, 2025

Thanks a ton for working on this. I'd be happy to merge this, but before could you please rebase and make sure it builds fine and passes the checks?

./gradlew build test

@tKe tKe force-pushed the when-else-with-guard branch from 1d99815 to 2097191 Compare October 15, 2025 17:20
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Oct 15, 2025

@hick209 has imported this pull request. If you are a Meta employee, you can view this in D84726222.

@hick209
Copy link
Copy Markdown
Contributor

hick209 commented Oct 15, 2025

Awesome! Oh, last thing. Could you update CHANGELOG.md?

Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync bot closed this in 7b5b665 Oct 17, 2025
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Oct 17, 2025

@hick209 merged this pull request in 7b5b665.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants