diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2012-11-17 02:02:08 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2012-11-17 02:02:08 +0900 |
| commit | ac0233bcd08358b35edce76171929121f8ee656f (patch) | |
| tree | 621ef3643eddce075f0e7fde63063a80e2b96efe /test | |
| parent | 470bb14dc86021926952b99c4e0543c8ef12f7c0 (diff) | |
| download | mruby-ac0233bcd08358b35edce76171929121f8ee656f.tar.gz mruby-ac0233bcd08358b35edce76171929121f8ee656f.zip | |
add test for issue#547; close #554
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/bs_block.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/t/bs_block.rb b/test/t/bs_block.rb index bef9a8564..cbfb925fe 100644 --- a/test/t/bs_block.rb +++ b/test/t/bs_block.rb @@ -388,3 +388,17 @@ assert('BS Block [ruby-core:14395]') do t = Controller.new t.test_for_bug end + +assert("BS Block 32") do + module TestReturnFromNestedBlock + def self.test + 1.times do + 1.times do + return :ok + end + end + :bad + end + end + TestReturnFromNestedBlock.test == :ok +end |
