Skip to content

Conversation

@ah-yu
Copy link
Contributor

@ah-yu ah-yu commented Feb 24, 2023

Formatter adds a blank line after braced case, which seems to be a regression introduced in v10

switch foo {                             
| 1 => {
    Js.log(1)
    Js.log(2)
  } 

| 2 => Js.log(3)
}

Copy link
Collaborator

@cristianoc cristianoc left a comment

Choose a reason for hiding this comment

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

Thanks you for the fix.
Perhaps this could be added to the 10.1 branch as well.

@cristianoc cristianoc merged commit 095abc8 into rescript-lang:master Feb 24, 2023
@ah-yu ah-yu deleted the braced-case-expr branch February 24, 2023 10:06
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.

2 participants