Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
matthargett opened this issue Mar 30, 2022 · 0 comments · Fixed by #426
Closed

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

matthargett opened this issue Mar 30, 2022 · 0 comments · Fixed by #426
Labels
bug Something isn't working

Comments

@matthargett
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants