You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unbound type parameters: Test Failed at /home/jishnu/.julia/packages/Aqua/HWLbM/src/unbound_args.jl:10
Expression:detect_unbound_args_recursively(m) == []
Evaluated: Any[f(::Tuple{Vararg{T, N}}) where {N, T} in abcd at /home/jishnu/Dropbox/JuliaPackages/abcd/src/abcd.jl:3] == Any[]
Stacktrace:
[1] macro expansion
@ ~/packages/julias/julia-1.8/share/julia/stdlib/v1.8/Test/src/Test.jl:464 [inlined]
[2] test_unbound_args(m::Module)
@ Aqua ~/.julia/packages/Aqua/HWLbM/src/unbound_args.jl:10
The issue seems to be with the T argument, and I think it's because in the N=0 case, T becomes an unbound argument in the first method. However, this method is not called in the N=0 case because the second method is more specific. Perhaps this should be ignored from the report?
The function calls are:
struct Vec{N,T}
x ::NTuple{N,T}functionVec{N,T}(x::NTuple{N,T}) where {N,T}
new{N,T}(x)
endendVec{N}(x::NTuple{N}) where {N} =Vec{N,eltype(x)}(x)
Vec{0}(x::Tuple{}) =Vec{0,Any}(x)
Let's say that I have a module
Testing this using Aqua, I obtain
The issue seems to be with the
T
argument, and I think it's because in theN=0
case,T
becomes an unbound argument in the first method. However, this method is not called in theN=0
case because the second method is more specific. Perhaps this should be ignored from the report?The function calls are:
If I'm missing something here, could someone please clarify this?
The text was updated successfully, but these errors were encountered: