julia-vscode / StaticLint.jl

Static Code Analysis for Julia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

xh4 opened this issue · comments

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

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