Skip to content

parens required for double-cast incorrectly removed, resulting in wrong-code #425

@matthargett

Description

@matthargett
self.mutationStore[mutationId] = (
	{
		lolz = foreva,
		variables = variables,
	} :: any
) :: MutationStoreValue

when I use this commandline on main:
cargo run --release --features=luau -- --column-width 107 -c ll.lua

the formatting correctly retains the parens around the :: any phrase.

I use change the column-width to 106, it reomved the parens around the :: any phrase, resulting in wrong-code.

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