This commit is contained in:
Araq 2015-04-27 23:11:36 +02:00
commit c6398d408d
9 changed files with 107 additions and 81 deletions

View file

@ -8,19 +8,19 @@ discard """
var raiseEx = true
var returnA = true
var returnB = false
proc main: int =
proc main: int =
try: #A
try: #B
if raiseEx:
raise newException(EOS, "")
raise newException(OSError, "")
return 3
finally: #B
echo "B1"
if returnB:
return 2
echo "B2"
except EOS: #A
except OSError: #A
echo "catch"
finally: #A
echo "A1"