Project

General

Profile

Actions

Bug #7430

closed

'unexpected return' occurs when call a Proc that returning value in rescue

Added by danilo.s.coelho (Danilo Coelho) over 11 years ago. Updated over 11 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p286 (2012-10-12) [i386-mingw32]
Backport:
[ruby-core:50050]

Description

p = Proc.new do
begin
1 / 0
rescue
return "error handled by proc"
end
end

p.call

Actions

Also available in: Atom PDF

Like0
Like0Like0