Skip to content

Parenthesized expression brackets stripped when they should not #619

@Perryvw

Description

@Perryvw
const abc = (4 - 6 as number).toLocaleString()

Is translated to:

local abc = 4 - 6:toLocaleString()

I'm not entirely sure why this happens.

Playground link

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions