-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
bugSomething isn't workingSomething isn't workingtest: unbound argswait-for-upstreamIssue needs to be fixed upstreamIssue needs to be fixed upstream
Description
Define a minimal module in AquaTest.jl:
module AquaTest
export get_ele_T
get_ele_T(::Type{<:Array{T}}) where {T} = T
endThen run the following code in REPL started in the same directory:
julia> begin
push!(LOAD_PATH, ".")
using AquaTest
using Aqua
end
julia> Aqua.test_unbound_args(AquaTest)
Test Passed
julia> get_ele_T(Union{})
ERROR: UndefVarError: `T` not defined in static parameter matching
Suggestion: run Test.detect_unbound_args to detect method arguments that do not fully constrain a type parameter.It seems that Aqua.jl (v0.8.12) ignored the edge case of Union{} isa Type{<:Array{T}} where {T}.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtest: unbound argswait-for-upstreamIssue needs to be fixed upstreamIssue needs to be fixed upstream