tario/fastruby — Issue #46: redo on block restore origina, local variables (block arguments)
Author: tario
Created: 2011-11-02 18:09:12+00:00
State: open
Labels: high

class X
def foo
yield(5)
end

def bar
foo do |n|
p n
n = n - 1
redo if n > 0
end
end
end

X,new,bar

expected; 5 4 3 2 1
received: 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 ...