diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-16 15:28:34 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-16 15:28:34 +0000 |
commit | 43395d53c9f9352f5fe9ed9a8ff443b62732f5f8 (patch) | |
tree | 5fad94661d9b4ceea9f189eb44fdf2a2ff046467 /test | |
parent | 1e18c8ebb2933da284af510d4a4ee523ff7e2445 (diff) | |
download | ruby-43395d53c9f9352f5fe9ed9a8ff443b62732f5f8.tar.gz |
Revert of r36411, as does not distinguish proc from lambda
* proc.c (rb_proc_arity): Fix Proc#arity in case of optional arguments
[bug #5694] [rubyspec:b8b259] [rubyspec:184c8100f]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_proc.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index ac8d568cde..3deb5c0109 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -68,7 +68,6 @@ class TestProc < Test::Unit::TestCase assert_equal(-1, proc{|*|}.arity) assert_equal(-3, proc{|x, *y, z|}.arity) assert_equal(-4, proc{|x, *y, z, a|}.arity) - assert_equal(-1, ->(a=42){}.arity) assert_arity(0) {} assert_arity(0) {||} |