Actions
Bug #20680
closedNo "void context" warning for literals/etc. in ensure block
Description
Providing this code, I would expect ruby to emit a void context warning:
begin
foo
rescue
bar
ensure
42
end
ensure
blocks don't return a value unless return
is used explicitly. Am I right in my assumption that this should theoretically emit a warning?
Actions
Like0
Like0