diff options
Diffstat (limited to 'test/t/syntax.rb')
| -rw-r--r-- | test/t/syntax.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/t/syntax.rb b/test/t/syntax.rb index 4ba171f9a..25ae09828 100644 --- a/test/t/syntax.rb +++ b/test/t/syntax.rb @@ -38,6 +38,13 @@ assert('yield', '11.3.5') do assert_raise LocalJumpError do yield end + assert_raise LocalJumpError do + o = Object.new + def o.foo + yield + end + o.foo + end end assert('Abbreviated variable assignment', '11.4.2.3.2') do |
