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 removes necessary parentheses around type #679

Closed
Pyseph opened this issue Apr 17, 2023 · 0 comments · Fixed by #680
Closed

StyLua removes necessary parentheses around type #679

Pyseph opened this issue Apr 17, 2023 · 0 comments · Fixed by #680
Labels
bug Something isn't working

Comments

@Pyseph
Copy link

Pyseph commented Apr 17, 2023

The parentheses around the type { number }? are removed by StyLua's formatting, which produces a Luau error:
image
The following code was used to reproduce the issue:

local x = {} :: {} & ({ number }?)
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