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

[Truffle] Error with splat args #2769

Closed
bjfish opened this issue Mar 27, 2015 · 0 comments
Closed

[Truffle] Error with splat args #2769

bjfish opened this issue Mar 27, 2015 · 0 comments
Milestone

Comments

@bjfish
Copy link
Contributor

bjfish commented Mar 27, 2015

The second call to splat args results in error. Exception is caught on ArrayBuilderNode line 218.

Code:

 @a = []
 @b = 0

def splat_args( *a )
  @a.insert(@b, *a)
  puts @a.to_s
end

splat_args 60, 111
splat_args 60, 111

Error

rang.rb:4:in `splat_args': internal implementation error - ArrayStoreException null java.lang.System.arraycopy(Native Method) (RubyTruffleError)
    from rang.rb:10:in `<main>'

Expected:

[60, 111]
[60, 111, 60, 111]
@chrisseaton chrisseaton added this to the truffle-dev milestone Mar 28, 2015
@enebo enebo added this to the Non-Release milestone Dec 7, 2017
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

3 participants