mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test for [ruby-core:14279].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
38c303bb52
commit
a84103ce60
1 changed files with 6 additions and 0 deletions
|
@ -3,3 +3,9 @@
|
||||||
# So all tests will cause failure.
|
# So all tests will cause failure.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
assert_normal_exit %{
|
||||||
|
def foo(&block)
|
||||||
|
yield if block
|
||||||
|
end
|
||||||
|
foo(&:bar)
|
||||||
|
}, '[ruby-core:14279]'
|
||||||
|
|
Loading…
Add table
Reference in a new issue