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

Shadowing via short instance variable syntax #122

Closed
veelenga opened this issue Nov 11, 2019 · 0 comments
Closed

Shadowing via short instance variable syntax #122

veelenga opened this issue Nov 11, 2019 · 0 comments
Assignees

Comments

@veelenga
Copy link
Member

Copying from gitter. @Daniel-Worrall

Is this code snippet supposed to flag the shadowing outer variable test on ameba? It's still accessible through @foo

class MyClass
  def bar(@foo)
    @foo.try do |foo|
    end
  end
end
@veelenga veelenga self-assigned this Nov 11, 2019
veelenga added a commit that referenced this issue Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants