Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: cb0ee32425
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (19 sloc) 0.618 kB
var count := 0
catch {
print "OK; inside main block."
Exception.raise "OK"
print "Failed; exception did not terminate block."
} case {
e : Exception ->
print "OK."
count := count + 1
} finally {
print "OK."
count := count + 2
}
match (count)
case { 3 -> print "OK; both exception handler and finally ran." }
case { 2 -> print "Failed; exception handler did not run." }
case { 1 -> print "Failed; finally block did not run." }
case { 0 -> print "Failed; neither exception handler nor finally ran." }
case { _ -> print "Failed; something is very broken." }
Jump to Line
Something went wrong with that request. Please try again.