Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precompilation shows Vararg wrapping warning #389

Open
felixcremer opened this issue Apr 29, 2024 · 0 comments
Open

Precompilation shows Vararg wrapping warning #389

felixcremer opened this issue Apr 29, 2024 · 0 comments

Comments

@felixcremer
Copy link
Member

felixcremer commented Apr 29, 2024

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)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant