Skip to content

Issue 61: ICE with an empty block #110

@consiliens

Description

@consiliens

"
Reported by rogerpack2005, May 28, 2011
Run the following code:

import java.util.ArrayList

interface CallableOneArg do
  def call(arg1:Object):Object
  end
end

# should I make this class static? cache it [in a hash]?
class RubyInt < Object

  def times(call_me:CallableOneArg):Object
    self
  end

end

RubyInt.new.times do |n|

end

=> Mirah::InternalCompilerError: undefined method `each' for nil:NilClass

"

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions