diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/syntax.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/t/syntax.rb b/test/t/syntax.rb index 245c5c099..83243a99f 100644 --- a/test/t/syntax.rb +++ b/test/t/syntax.rb @@ -289,3 +289,7 @@ assert('optional argument in the rhs default expressions') do assert_nil(o.t) assert_equal("method called", o.t2) end + +assert('optional block argument in the rhs default expressions') do + assert_nil(proc {|foo = foo| foo}.call) +end |
