Skip to content

Inference failure for splatting numbers #22291

Closed
@timholy

Description

@timholy

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions