Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Refmt 3.3.9 removes semi-colon in JSX #95

@maarekj

Description

@maarekj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions