Skip to content

Conversation

@shawnhyam
Copy link
Contributor

Fixes #726. An enum decl won't have a corresponding .close, so we shouldn't add a .open token.

@shawnhyam shawnhyam requested a review from ahoppen April 29, 2024 15:56
@shawnhyam
Copy link
Contributor Author

This change will also make #725 format as desired when the prioritizeKeepingFunctionOutputTogether flag is enabled.

Copy link
Member

@allevato allevato left a comment

Choose a reason for hiding this comment

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

Thank you for the fix!

@allevato allevato merged commit 366da31 into swiftlang:main May 1, 2024
@shawnhyam shawnhyam deleted the fix-crash-on-enum-decl branch May 29, 2024 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants