Open
Description
function a(b::Vector{Int})
return [c^2 for c in b]
end
will cause semgrep
to error with the current rules saying b
is unused.
Similarly, Val
types used to dispatch (or any ::Type{SomeType}
) arguments cause unused parameter errors:
function a(b::Vector{Int}, ::Val{true})
return b
end
this will generate an error saying ::Val{true}
is unused.
Metadata
Metadata
Assignees
Labels
No labels