YAXArrays.jl
YAXArrays.jl copied to clipboard
Precompilation shows Vararg wrapping warning
During the precompilation we get the following warning
I suspect this comes from line 2 in helpers.jl but I am not sure whether just removing <: is the right move here.
const VecOrTuple{S} = Union{Vector{<:S},Tuple{Vararg{<:S}}} where {S}`
Error:
│ WARNING: Wrapping `Vararg` directly in UnionAll is deprecated (wrap the tuple instead).
│ You may need to write `f(x::Vararg{T})` rather than `f(x::Vararg{<:T})` or `f(x::Vararg{T}) where T` instead of `f(x::Vararg{T} where T)`.