-
-
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
Union types turn into Any when splatted #26610
Comments
Further reduction: t = Tuple{Int, Union{Missing, Float64}}[(1, 2.0)]
argtail(x, rest...) = rest
test(t) = argtail(first(t)...)
@code_warntype test(t) |
This solves it:
But I think it's only a band-aid over the loss of type information caused by splatting. |
Is this something that's on purpose? If |
bramtayl
changed the title
Inference failure in Base.tail
Union types turn into Any when splatted
Mar 26, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: