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

Inference failure for splatting numbers #22291

Closed
timholy opened this issue Jun 8, 2017 · 2 comments · Fixed by #27434
Closed

Inference failure for splatting numbers #22291

timholy opened this issue Jun 8, 2017 · 2 comments · Fixed by #27434
Labels
compiler:inference Type inference

Comments

@timholy
Copy link
Member

timholy commented Jun 8, 2017

This fails on at least 0.5.2, 0.6.0-rc2, and master:

julia> wrap(ind) = (ind...)
wrap (generic function with 1 method)

julia> wrap(1)
(1,)

julia> using Base.Test

julia> @inferred(wrap(1))
ERROR: return type Tuple{Int64} does not match inferred return type Tuple{Vararg{Int64,N} where N}
Stacktrace:
 [1] error(::String) at ./error.jl:21

Fix coming momentarily.

@pabloferz
Copy link
Contributor

Dup of #19957?

@timholy
Copy link
Member Author

timholy commented Jun 8, 2017

Probably the same issue, but the fix doesn't apply to this instance. It seems to depend on which functions get inlined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:inference Type inference
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants