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

self isn't marked as unused when explicitly defined #215

Closed
ok-nick opened this issue Mar 23, 2021 · 0 comments · Fixed by #264
Closed

self isn't marked as unused when explicitly defined #215

ok-nick opened this issue Mar 23, 2021 · 0 comments · Fixed by #264
Labels
A-lints Area: Relating to a lint directly C-bug Category: Bug

Comments

@ok-nick
Copy link
Contributor

ok-nick commented Mar 23, 2021

In both examples, it won't mark self as "defined, but unused." I can see how this could be tricky to solve since self could be passed implicitly with a colon, but it's not normal behavior.

local function foo(self)

end

foo()
local self = 'baz'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lints Area: Relating to a lint directly C-bug Category: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants