summaryrefslogtreecommitdiff
path: root/test/ruby/test_proc.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-29 04:22:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-29 04:22:55 +0000
commite6f86c982f210ed9f97f4afa8e3c9cab6c31351d (patch)
tree24bf5c386218bb185381a0975cd39d9598eee7cd /test/ruby/test_proc.rb
parentb9432e7630f3a85944730b3ba1b1aa4a8a753612 (diff)
downloadruby-e6f86c982f210ed9f97f4afa8e3c9cab6c31351d.tar.gz
* vm.c (rb_thread_method_id_and_class): curried proc has no
method. [ruby-core:31871] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_proc.rb')
-rw-r--r--test/ruby/test_proc.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb
index 5a108d3a0f..1a473ae43d 100644
--- a/test/ruby/test_proc.rb
+++ b/test/ruby/test_proc.rb
@@ -792,4 +792,12 @@ class TestProc < Test::Unit::TestCase
assert_equal([obj, nil], [a, b], '[ruby-core:24139]')
end
end
+
+ def test_curry_with_trace
+ bug3751 = '[ruby-core:31871]'
+ set_trace_func(proc {})
+ test_curry
+ ensure
+ set_trace_func(nil)
+ end
end