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

StyLua reports AST difference when formatting useless parentheses in Luau types #643

Closed
Kampfkarren opened this issue Jan 23, 2023 · 1 comment · Fixed by #651
Closed
Labels
bug Something isn't working

Comments

@Kampfkarren
Copy link

Given type x = (number), stylua --verify sample.lua gives the "output AST may be different to input AST" error. Formatting produces type x = number.

@JohnnyMorganz
Copy link
Owner

Fix released in v0.16.1 https://github.com/JohnnyMorganz/StyLua/releases/tag/v0.16.1

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