Actions
Bug #20409
openMissing reporting some invalid breaks
Actions
Like0
Like0Like0Like0
Added by kddnewton (Kevin Newton) 12 months ago. Updated 12 months ago.
Sorry hit enter too soon...
def a
break
rescue
b while c
end
def a
break
ensure
b while c
end
I think
END { break }
should also be a syntax error, as it seems to always result in a LocalJumpError
, but I could be wrong.
It reproduces only with a modifier while
/until
, even without rescue
/ensure
.
begin
break
nil while false
end