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

BUG: missing interpret for Crystal::Splat #13183

Open
ysbaddaden opened this issue Mar 12, 2023 · 0 comments
Open

BUG: missing interpret for Crystal::Splat #13183

ysbaddaden opened this issue Mar 12, 2023 · 0 comments

Comments

@ysbaddaden
Copy link
Contributor

The compiler allows to splat a Tuple inside a new Tuple, but the interpreter doesn't like it.

Here is a simple reproduce:

# bug.cr
foo = {1, 2, 3}
bar = {*foo, 4, 5}
p bar

The compiler is fine:

$ crystal run bug.cr
{1, 2, 3, 4, 5}

The interpreter doesn't:

$ crystal i bug.cr
In bug.cr:2:5

 2 | b = {*foo, 4, 5}
         ^
Error: BUG: missing interpret for Crystal::Splat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants