mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
64bc558cc5
commit
e3897c538c
4 changed files with 19 additions and 13 deletions
|
|
@ -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]'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue