-
Notifications
You must be signed in to change notification settings - Fork 31
Unbound argument should not be counted if a method isn't called #86
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
Comments
I think I'm running into something similar... Or at least I don't know how to fix: Vec{N}(x::NTuple{N, T}) where {N, T} = Vec{N,T}(x) |
This seems to pass: struct Vec{N,T}
x :: NTuple{N,T}
function Vec{N,T}(x::NTuple{N,T}) where {N,T}
new{N,T}(x)
end
end
Vec{N}(x::NTuple{N}) where {N} = Vec{N,eltype(x)}(x)
Vec{0}(x::Tuple{}) = Vec{0,Any}(x) |
Duplicate of JuliaLang/julia#28086 - since Aqua uses |
cgarling
added a commit
to cgarling/StarFormationHistories.jl
that referenced
this issue
Jan 13, 2025
New `tups_to_mat` function results in unbound type parameters because of `Vararg`, trying to fix. See [Aqua.jl #316](JuliaTesting/Aqua.jl#316) and [#86](JuliaTesting/Aqua.jl#86).
cgarling
added a commit
to cgarling/StarFormationHistories.jl
that referenced
this issue
Jan 25, 2025
New `tups_to_mat` function results in unbound type parameters because of `Vararg`, trying to fix. See [Aqua.jl #316](JuliaTesting/Aqua.jl#316) and [#86](JuliaTesting/Aqua.jl#86).
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
Uh oh!
There was an error while loading. Please reload this page.
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: