Skip to content

Issue 74:ICE with macros within a class def #123

@consiliens

Description

@consiliens

"
Reported by rogerpack2005, Jun 1, 2011

$ cat yo_mir 

class A
  macro def foo? 
    quote { isFoo } 
  end 
  def foo?
    true
  end
end
A.new.foo?
$ mirah yo_mir 
yo_mir:6: undefined method `unreachable?' for #<Mirah::AST::InlineCode:0x498b5a73>
  def foo?
^^^^^^^^^^^
    true
^^^^^^^^^
  end
^^^^^
Mirah::InternalCompilerError: undefined method `unreachable?' for #<Mirah::AST::InlineCode:0x498b5a73>
            infer at /Users/rogerdpack/.rvm/gems/jruby-1.6.0/gems/mirah-0.0.7-java/lib/mirah/typer.rb:300
...

"

http://code.google.com/p/mirah/issues/detail?id=74

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions