1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* compile.c (setup_args), vm.c (invoke_block_from_c),

vm_insnhelper.c (caller_setup_args): reverted r30241 and r30243
  except for the test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-12-20 21:10:24 +00:00
parent da4d3e8464
commit f4db8aedc8
6 changed files with 16 additions and 24 deletions

View file

@ -22,9 +22,6 @@ class TestLambdaParameters < Test::Unit::TestCase
assert_raise(ArgumentError) { ->(a,b){ }.call(1,2,3) }
end
end
__END__
def test_lambda_as_iterator
a = 0
2.times(&->(_){ a += 1 })