berkesokhan / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
1 stars 0 forks source link

"foo { super }" causes System.IndexOutOfRangeException #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Test case:

  foo { super }

Result: System.IndexOutOfRangeException

Stack trace:

  Ruby.Compiler.CodeGenContext.ldarg(-1) Line 178
  Ruby.Compiler.CodeGenContext.ldarg("block") Line 173
  Ruby.Compiler.AST.PARAM.GenSimple({Ruby.Compiler.CodeGenContext}) Line 75
  Ruby.Compiler.AST.ARGS.GenArgList({Ruby.Compiler.CodeGenContext}, false)
Line 185
  Ruby.Compiler.AST.SUPER.GenCode0({Ruby.Compiler.CodeGenContext}) Line 351
  ...

Needed by active_support/dependencies.rb (hence Rails).

Original issue reported on code.google.com by sason...@gmail.com on 2 Oct 2007 at 4:38

GoogleCodeExporter commented 9 years ago

Original comment by meaningi...@gmail.com on 9 Oct 2007 at 8:48