Skip to content

Odd indentation of lists passed as argument to function #10

@heralden

Description

@heralden

If you pass a list that spans over multiple lines to a function, each element will have the same indentation as the opening square bracket.

let myFunc = l: list(int) => l;

myFunc([1,
       2,
       3,
       4,
]);

Shouldn't the code be indented with a single tab width (in the style of javascript), like the following?

myFunc([
  1,
  2,
  3,
  4,
]);

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