Skip to content

Reformatting to invalid code in tests #6966

Closed
@cknitt

Description

@cknitt

Examples from jscomp/test:

@obj external ff: (~x: int, ~h: @as(3) _) => _ = ""

Reformatted once:

@obj external ff: (~x: int) => (~h: @as(3) _) => _ = ""

Reformatted again:

@obj external ff: (~x: int) =>  = ""

Similarly

@obj
external ff: (
  ~hi: int,
  ~lo: @as(3) _,
  ~lo2: @as(json`{hi:-3 }`) _,
  ~lo3: @as(-1) _,
  ~lo4: @as(json`-3`) _,
) => _ = ""

Reformatted once:

@obj
external ff: (
  ~hi: int,
) => (
  ~lo: @as(3) _,
  ~lo2: @as(json`{hi:-3 }`) _,
  ~lo3: @as(-1) _,
  ~lo4: @as(json`-3`) _,
) => _ = ""

Reformatted again:

@obj
external ff: (~hi: int) =>  = ""

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions