Hi community!

Is this...

irb(main):001:0> p = ->(i=4){i+5}
=> #<Proc:0xe8a370@(irb):1 (lambda)>
irb(main):002:0> p[]
=> 9
irb(main):003:0> Fiber.new(&p).resume
NoMethodError: undefined method `+' for nil:NilClass
         from (irb):1:in `block (3 levels) in irb_binding'


...done by intention or is it a bug?

A more useful example is...

irb(main):001:0> f = Fiber.new(&(->(i=5){loop{Fiber.yield i+=1}}))
=> #<Fiber:0xe860f8>
irb(main):002:0> f.resume
NoMethodError: undefined method `+' for nil:NilClass
         from (irb):1:in `block (4 levels) in irb_binding'
         from (irb):1:in `loop'
         from (irb):1:in `block (3 levels) in irb_binding'


Wolfgang N?dasi-Donner