mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test: def m() yield end; p m {|((*))|}.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
18c81c3d3e
commit
d18fd7206d
1 changed files with 7 additions and 1 deletions
|
@ -382,7 +382,6 @@ assert_equal 'nil', %q{
|
|||
m {|(v,(*))|}.inspect
|
||||
}
|
||||
|
||||
|
||||
# [ruby-dev:31153]
|
||||
assert_equal 'nil', %q{
|
||||
def m()
|
||||
|
@ -391,3 +390,10 @@ assert_equal 'nil', %q{
|
|||
m {|(*,a,b)|}.inspect
|
||||
}
|
||||
|
||||
assert_equal 'nil', %q{
|
||||
def m()
|
||||
yield
|
||||
end
|
||||
m {|((*))|}.inspect
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue