dbremner / rubydotnetcompiler

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

class C; def @v.m; end; end --> assertion error #67

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This only happens since r166.

Test:

  class C
    def @v.m
    end
  end

Expected: nothing
Actual: assertion error

Stack:

  Ruby.Compiler.CodeGenContext.ldarg(-1) Line 178
  Ruby.Compiler.CodeGenContext.ldarg("recv") Line 173
  Ruby.Compiler.AST.IVAR.GenSimple({Ruby.Compiler.CodeGenContext}) Line 346
  Ruby.Compiler.AST.Node.GenCode0({Ruby.Compiler.CodeGenContext}) Line 61
  Ruby.Compiler.AST.Node.GenCode({Ruby.Compiler.CodeGenContext}) Line 51
  Ruby.Compiler.CodeGenContext.LastClass({Ruby.Compiler.AST.DEFS}) Line 641
  Ruby.Compiler.AST.Scope.CreateLastClassMethod({PERWAPI.ClassDef}, 
{Ruby.Compiler.CodeGenContext}) Line 240
  Ruby.Compiler.AST.Scope.AddScopeLocals({Ruby.Compiler.CodeGenContext}) 
Line 209
  Ruby.Compiler.AST.DEFN.GenCallMethod({PERWAPI.ClassDef}, 
{Ruby.Compiler.CodeGenContext}) Line 272
  Ruby.Compiler.AST.DEFN.GenerateClassForMethod
({Ruby.Compiler.CodeGenContext}) Line 210
  Ruby.Compiler.AST.DEFN.DefineMethod({Ruby.Compiler.CodeGenContext}) Line 
189
  Ruby.Compiler.AST.DEFS.GenCode0({Ruby.Compiler.CodeGenContext}) Line 317
  Ruby.Compiler.AST.Node.GenCode({Ruby.Compiler.CodeGenContext}) Line 51
  Ruby.Compiler.AST.Scope.AddScopeBody({Ruby.Compiler.CodeGenContext}) 
Line 298
  Ruby.Compiler.AST.CLASS_OR_MODULE.GenCode0
({Ruby.Compiler.CodeGenContext}) Line 238
  ...

Original issue reported on code.google.com by sason...@gmail.com on 8 Nov 2007 at 4:54

GoogleCodeExporter commented 8 years ago

Original comment by meaningi...@gmail.com on 9 Nov 2007 at 4:45