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
module Foo
using StaticArrays
struct Tangent{T}
location::T
slope::Tendstruct ScaledProblem{N,TA<:Real,TE<:Real}
a::SVector{N,TA}
ϵ::SVector{N,TE}end
Base.@kwdefstruct PrecalculatedProblem{N,M,TA<:Real,TE<:Real,TT<:Real}
P::ScaledProblem{N,TA,TE}
tangents::NTuple{M,Tangent{TT}}endendusing 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>VERSIONv"1.11.3"
The text was updated successfully, but these errors were encountered:
This is acutally not a false behavior on Aqua's side here.
If you call PrecalculatedProblem with some ScaledProblem{N, TA, TE} and tangents=() (an empty NTuple), then TT is not specified.
MWE
error
versions
The text was updated successfully, but these errors were encountered: