"
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
"
Reported by rogerpack2005, May 28, 2011
Run the following code:
=> Mirah::InternalCompilerError: undefined method `each' for nil:NilClass
"
http://code.google.com/p/mirah/issues/detail?id=61