Skip to content

Luau: stylua erroneously removes parentheses around string union table indexers #828

@lolmanurfunny

Description

@lolmanurfunny

Before:

type foo = {
  [("bar" | "baz")]: any,
}

After:

type foo = {
  ["bar" | "baz"]: any, -- syntax error
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions