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

Pin operator not taken into consideration in metadata builder #179

Closed
lukaszsamson opened this issue Mar 4, 2023 · 0 comments · Fixed by #210
Closed

Pin operator not taken into consideration in metadata builder #179

lukaszsamson opened this issue Mar 4, 2023 · 0 comments · Fixed by #210
Labels
bug Something isn't working

Comments

@lukaszsamson
Copy link
Collaborator

The pin operator (^) is not taken into consideration so variables can be wrongly marked as definitions. E.g.

def my_fun(a, b) do
  case a do
    ^b -> b
  end
end

variable b will be treated as redefined in the case clause, but in fact, it is the same unchanged variable as the one defined in the function header. I suggest fixing it in a follow-up PR.

Extracted from #177

@lukaszsamson lukaszsamson added the bug Something isn't working label Mar 4, 2023
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.

1 participant