We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A line comment before a case in a switch expression seems to force it to split when it otherwise wouldn't need to. The formatter currently produces:
return switch (level) { 0 => a, // Comment. 1 when flag => b, }; return switch (level) { 0 => a, 1 when flag => b, };
Both should have the same formatting for the 1 when flag => b case.
1 when flag => b
The text was updated successfully, but these errors were encountered:
Don't force split on a line comment before a switch expression case.
b2f4bab
Fix #1215.
999380c
Successfully merging a pull request may close this issue.
A line comment before a case in a switch expression seems to force it to split when it otherwise wouldn't need to. The formatter currently produces:
Both should have the same formatting for the
1 when flag => b
case.The text was updated successfully, but these errors were encountered: