-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Spurious deprecation warning from Vararg !<: Type #49553
Comments
Does it work to write |
Ah, yes it does. Not sure whether this should be problematic, though. Or if it is, we need a clearer error message. |
Yeah, the error message is not great; I just remember that this error message means to remove the
|
|
(In a method signature the |
Isn't it:
So wrapping in |
The first one's signature is |
I see the point of confusion: I was thinking of just the arg, you were using the whole signature tuple-type. While we may not be able to give a definitive prescription, there don't seem to be that many options. Would it be acceptable to add a second line, 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)` |
Sure |
Wrapping `Vararg` directly in UnionAll is deprecated (wrap the tuple instead). See: JuliaLang/julia#49553
I don't understand why this function definition seems prohibited (running with
--depwarn=error
):xref #38136, CC @Keno
The text was updated successfully, but these errors were encountered: