diff options
| author | Earlopain <14981592+Earlopain@users.noreply.github.com> | 2026-01-30 09:30:21 +0100 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2026-02-03 10:49:21 -0500 |
| commit | 3237be163c313af0b6626b209e55bdb0b33c9f0f (patch) | |
| tree | 48c117e66c297742ff6c431ab54bce688666dd75 /test/ruby | |
| parent | 6a4e53f94ddc946b6116b250a2b20b78bef3f0ef (diff) | |
[Bug #21669] Thoroughly implement void value expression check (prism)
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_syntax.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index b355128a73..5065a1db33 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -1539,10 +1539,10 @@ eom begin raise; rescue; return; end return false; raise return 1; raise - "#{return}" - raise((return; "should not raise")) + "#{return if true}" + raise((return if true; "should not raise")) begin raise; ensure return; end; self - nil&defined?0--begin e=no_method_error(); return; 0;end + nil&defined?0--begin e=no_method_error(); return if true; 0;end return puts('ignored') #=> ignored BEGIN {return} END {return if false} |
