StaticLint.jl
StaticLint.jl copied to clipboard
Invalid redefinition of constant

Linter message is "Invalid redefinition of constant."
That seems weird to me.
I'm seeing something similar:
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.