diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-21 14:58:26 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-21 14:58:26 +0900 |
| commit | 8694654fd4245a9cd2946759a97e6766b52983c9 (patch) | |
| tree | d115d8ec61cfe246c3e68aaf5e8384c0dc495d29 /test | |
| parent | 6ec04a4e782589266105fdaef6b61bd98e0d5851 (diff) | |
| parent | ac6747a9c52e22b5ceee81646083df68a33d3442 (diff) | |
| download | mruby-8694654fd4245a9cd2946759a97e6766b52983c9.tar.gz mruby-8694654fd4245a9cd2946759a97e6766b52983c9.zip | |
Merge pull request #2099 from nobu/optional_arguments_in_rhs
Optional arguments in rhs
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 |
