Skip to content

Reformatting to invalid code in tests #6966

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) =>  = ""

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions