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

Wrong "Cannot define function ; it already has a value." #325

Open
xh4 opened this issue Jan 15, 2022 · 2 comments
Open

Wrong "Cannot define function ; it already has a value." #325

xh4 opened this issue Jan 15, 2022 · 2 comments
Labels

Comments

@xh4
Copy link

xh4 commented Jan 15, 2022

Consider the following two statements:

const MyVector = Vector{Int64}

MyVector(x::Int64) = [x]

The code works fine but the linter gives the second statement "Cannot define function ; it already has a value." warning.

Version info:

  • Julia: 1.7.1
  • StaticLint: 8.0.3
@pfitzseb pfitzseb added the bug label Jan 18, 2022
@mehalter
Copy link

Just a bump that this bug is still present in Julia v1.10.4 and StaticLint 8.2.2

@NHDaly
Copy link

NHDaly commented Sep 11, 2024

Here's a screenshot of the false positive error
Screenshot 2024-09-11 at 8 36 29 AM

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

No branches or pull requests

4 participants