Skip to content

Commit

Permalink
test/ruby/test_exception.rb: suppress "warning: statement not reached"
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Apr 27, 2021
1 parent d405b1a commit ea88f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ruby/test_exception.rb
Expand Up @@ -126,7 +126,7 @@ def test_exception_in_ensure_with_redo
def test_exception_in_ensure_with_return
@string = "[ruby-core:97104] [Bug #16618]"
def self.meow
return
return if true # This if modifier suppresses "warning: statement not reached"
assert(false)
rescue
assert(false)
Expand Down

0 comments on commit ea88f49

Please sign in to comment.