YAXArrays.jl icon indicating copy to clipboard operation
YAXArrays.jl copied to clipboard

Precompilation shows Vararg wrapping warning

Open felixcremer opened this issue 1 year ago • 0 comments

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)`.

felixcremer avatar Apr 29 '24 09:04 felixcremer