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

Reassemble spliced tuple fails #6766

Closed
maleadt opened this issue May 6, 2014 · 1 comment
Closed

Reassemble spliced tuple fails #6766

maleadt opened this issue May 6, 2014 · 1 comment

Comments

@maleadt
Copy link
Member

maleadt commented May 6, 2014

The following fragment fails to run:

function main()
    foo = 1
    bar = [2, 3]
    foobar = (foo, bar)

    broken = (foobar...)
end
main()

I get:

ERROR: type: apply_type: in Vararg, expected Type{T<:Top}, got (Int64,Array{Int64,1})
 in main at /tmp/bug.jl:6
 in include at boot.jl:244
 in include_from_node1 at loading.jl:128
while loading /tmp/bug.jl, in expression starting on line 8

While, if bar is set to a simple literal, or even to a tuple (e,g, bar = (2, 3) instead of bar = [2, 3]), everything works normally.

@JeffBezanson
Copy link
Member

see #4869

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

2 participants