From e3897c538c27cf6c302972ee47f034ce909f0f45 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 23 Dec 2007 02:26:45 +0000 Subject: * string.c (sym_call): use exact argument array interface. [ruby-core:14279] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_block.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bootstraptest/test_block.rb') diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb index f139c21d15..3ece21756d 100644 --- a/bootstraptest/test_block.rb +++ b/bootstraptest/test_block.rb @@ -497,3 +497,13 @@ assert_equal 'ok', %q{ result end } + +assert_equal "ok", %q{ + class Bar + def bar; :ok; end + end + def foo + yield(Bar.new) if block_given? + end + foo(&:bar) +}, '[ruby-core:14279]' -- cgit v1.2.3