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

Raise warning if attributes are used without angle brackets #334

Closed
Sainan opened this issue Jul 31, 2023 · 0 comments · Fixed by #348
Closed

Raise warning if attributes are used without angle brackets #334

Sainan opened this issue Jul 31, 2023 · 0 comments · Fixed by #348
Labels
enhancement New feature or request

Comments

@Sainan
Copy link
Member

Sainan commented Jul 31, 2023

For example:

local a const = 3

This would assign local variable a the value of nil, and create a global variable const with the value of 3.

Of course, the intend here was obviously to make a constant local variable a with the value of 3.

We might detect this based on if the localstat was terminated either by a newline or semicolon.

@Sainan Sainan added the enhancement New feature or request label Jul 31, 2023
@Sainan Sainan linked a pull request Aug 26, 2023 that will close this issue
@Sainan Sainan closed this as completed Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant