StaticLint.jl icon indicating copy to clipboard operation
StaticLint.jl copied to clipboard

Invalid redefinition of constant

Open KristofferC opened this issue 3 years ago • 2 comments

gnome-shell-screenshot-gcho91

Linter message is "Invalid redefinition of constant."

That seems weird to me.

KristofferC avatar Oct 10 '22 09:10 KristofferC

I'm seeing something similar:

Image

densmojd avatar Jul 09 '25 15:07 densmojd

More details. I'm getting this warning because I have import StaticArrays: SMatrix in two different tests, where my runtests.jl file looks like

include("test1.jl")
include("test2.jl")

If, instead of explicitly, I include the tests with a loop,

tests = ["test1.jl", "test2.jl"]
for test in tests
   include(test)
end

the message goes away.

densmojd avatar Jul 11 '25 13:07 densmojd