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

Variable resolution: shadowing #437

Closed
deadok22 opened this issue Feb 25, 2014 · 1 comment
Closed

Variable resolution: shadowing #437

deadok22 opened this issue Feb 25, 2014 · 1 comment

Comments

@deadok22
Copy link
Collaborator

In following code Var from fun expression's pattern is not a reference to outer scope's Var - it is a new variable and it shadows the outer Var inside fun expression

f() ->
  Var = 1,
  fun (Var) -> Var * 2 end.

The plugin resolves fun's argument to Var from outer scope, which is wrong.

@deadok22
Copy link
Collaborator Author

relates to #198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant