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

Missing "Assigned but not used" warning when same symbol used in local function #314

Closed
fredrikekre opened this issue Oct 5, 2021 · 3 comments

Comments

@fredrikekre
Copy link
Member

This doesn't warn for Assigned but not used for k. (Perhaps it should also warn for bar?)

function foo()
    bar(k) = k + 1
    k = 1
    return nothing
end
@pfitzseb
Copy link
Member

pfitzseb commented Oct 5, 2021

Same as #313.

@pfitzseb pfitzseb closed this as completed Oct 5, 2021
@fredrikekre
Copy link
Member Author

Same underlying issue you mean? Cause #313 warns when it shouldn't, but this doesn't warn.

@pfitzseb
Copy link
Member

pfitzseb commented Oct 5, 2021

Yea.

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

2 participants