reason-cli icon indicating copy to clipboard operation
reason-cli copied to clipboard

Refmt 3.3.9 removes semi-colon in JSX

Open maarekj opened this issue 6 years ago • 0 comments

With refmt (Reason 3.3.9 @ 9914cc69) The code:

let a =
  <div>
    {
      let name = "joseph";
      <span> {ReasonReact.string(name)} </span>;
    }
  </div>;

is transformed to

let a = <div> {let name = "joseph"
               <span> {ReasonReact.string(name)} </span>} </div>;

The semicolon after "joseph" is remove by refmt, and the code no longer compiles. It's a regression bug.

maarekj avatar Dec 23 '18 18:12 maarekj