You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error formatting switch blocks with arrow labels #507
Activity
tbroyer commentedon Jul 15, 2020
Duplicate of #477 ?
skirkpatrick commentedon Jul 15, 2020
#477 refers to switch expressions, and has been fixed in GJF 1.8.
This issue specifically affects switch statements (non-value returning) using the arrow label syntax (traditional
case ...:labels work fine)EDIT: actually, I could be wrong. Testing with the HEAD build...
skirkpatrick commentedon Jul 15, 2020
@tbroyer you're correct, looks like this has already been fixed on master. Closing!
tbroyer commentedon Jul 15, 2020
A test was added when adding support for
yieldin #489 (not sure which commit actually fixed it though):google-java-format/core/src/test/resources/com/google/googlejavaformat/java/testdata/ExpressionSwitch.input
Lines 23 to 26 in 45fb41a