Closed
Description
MWE
module Foo
using StaticArrays
struct Tangent{T}
location::T
slope::T
end
struct ScaledProblem{N,TA<:Real,TE<:Real}
a::SVector{N,TA}
ϵ::SVector{N,TE}
end
Base.@kwdef struct PrecalculatedProblem{N,M,TA<:Real,TE<:Real,TT<:Real}
P::ScaledProblem{N,TA,TE}
tangents::NTuple{M,Tangent{TT}}
end
end
using Aqua
Aqua.test_unbound_args(Foo)
error
Unbound type parameters detected:
[1] Main.Foo.PrecalculatedProblem(P::Main.Foo.ScaledProblem{N, TA, TE}, tangents::NTuple{M, Main.Foo.Tangent{TT}}) where {N, M, TA<:Real, TE<:Real, TT<:Real} @ Main.Foo /tmp/tmp.jl:16
Test Failed at /home/tamas/.julia/packages/Aqua/epbUr/src/unbound_args.jl:37
Expression: isempty(unbounds)
Evaluated: isempty(Method[Main.Foo.PrecalculatedProblem(P::Main.Foo.ScaledProblem{N, TA, TE}, tangents::NTuple{M, Main.Foo.Tangent{TT}}) where {N, M, TA<:Real, TE<:Real, TT<:Real} @ Main.Foo /tmp/tmp.jl:16])
versions
Status `~/code/julia/NonhomotheticCES/test/Project.toml`
[4c88cf16] Aqua v0.8.11
[90137ffa] StaticArrays v1.9.12
julia> VERSION
v"1.11.3"