Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jredville
Created February 23, 2012 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jredville/1890439 to your computer and use it in GitHub Desktop.
Save jredville/1890439 to your computer and use it in GitHub Desktop.
def []=(*args)
p args
end
a = ['a']
self[1,*a,2] = 2
Rubinius Crash Report #rbxcrashreport
[[Exception]]
A toplevel exception occurred
Error trying to compile /Users/james/rubies/main/Languages/Ruby/Tests/Experiments/19/args.rb (Rubinius::CompileError)
Backtrace:
Rubinius::Compiler.compiler_error at /Users/james/.rvm/rubies/rbx-head/runtime
/19/compiler/compiler.rbc:13
Rubinius::Compiler.compile at /Users/james/.rvm/rubies/rbx-head/runtime
/19/compiler/compiler.rbc:88
Rubinius::CodeLoader#compile_file at kernel/delta/codeloader.rb:166
Rubinius::CodeLoader#load_file at kernel/delta/codeloader.rb:138
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:63
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:109
Rubinius::Loader#script at kernel/loader.rb:630
Rubinius::Loader#main at kernel/loader.rb:834
Caused by: undefined method `size' on an instance of Rubinius::AST::PushArgs. (NoMethodError)
Backtrace:
 Kernel(Rubinius::AST::PushArgs)#size (method_missing) at kernel/delta
/kernel.rb:81
Rubinius::AST::PushActualArguments#size at /Users/james/.rvm/rubies/rbx-head
/runtime/19/compiler/ast
/sends.rbc:295
Rubinius::AST::ElementAssignment#bytecode at /Users/james/.rvm/rubies/rbx-head
/runtime/19/compiler/ast
/sends.rbc:239
{ } in Rubinius::AST::Block#bytecode at /Users/james/.rvm/rubies/rbx-head
/runtime/19/compiler/ast
/definitions.rbc:96
 { } in Enumerable(Array)#each_with_index at kernel/common/enumerable19.rb:447
 Array#each at kernel/bootstrap/array.rb:68
 Enumerable(Array)#each_with_index at kernel/common/enumerable19.rb:446
Rubinius::AST::Block#bytecode at /Users/james/.rvm/rubies/rbx-head
/runtime/19/compiler/ast
/definitions.rbc:94
{ } in Rubinius::AST::Script#bytecode at /Users/james/.rvm/rubies/rbx-head
/runtime/19/compiler/ast
/definitions.rbc:1073
Rubinius::AST::Container(Rubinius::AST::Script)#container_bytecode at \
/Users/james/.rvm/rubies/rbx-head/runtime/19/compiler/ast/definitions.rbc:956
Rubinius::AST::Script#bytecode at /Users/james/.rvm/rubies/rbx-head
/runtime/19/compiler/ast
/definitions.rbc:1072
Rubinius::Compiler::Generator#run at /Users/james/.rvm/rubies/rbx-head
/runtime/19/compiler/stages.rbc:153
Rubinius::Compiler::Stage(Rubinius::Compiler::FileParser)#run_next at \
/Users/james/.rvm/rubies/rbx-head/runtime/19/compiler/stages.rbc:53
Rubinius::Compiler::Parser(Rubinius::Compiler::FileParser)#run at \
/Users/james/.rvm/rubies/rbx-head/runtime/19/compiler/stages.rbc:220
Rubinius::Compiler#run at /Users/james/.rvm/rubies/rbx-head
/runtime/19/compiler/compiler.rbc:370
Rubinius::Compiler.compile at /Users/james/.rvm/rubies/rbx-head
/runtime/19/compiler/compiler.rbc:84
 Rubinius::CodeLoader#compile_file at kernel/delta/codeloader.rb:166
 Rubinius::CodeLoader#load_file at kernel/delta/codeloader.rb:138
 Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:63
 Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:109
 Rubinius::Loader#script at kernel/loader.rb:630
 Rubinius::Loader#main at kernel/loader.rb:834
[[Version]]
rubinius 2.0.0dev (1.9.3 f4645d6c yyyy-mm-dd JI) [x86_64-apple-darwin11.2.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment