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

@ -5,20 +5,20 @@ discard """
# First variety
try:
raise newException(EOS, "Problem")
except EOS:
raise newException(OSError, "Problem")
except OSError:
for y in [1, 2, 3]:
discard
try:
discard
except EOS:
except OSError:
discard
echo "1"
# Second Variety
try:
raise newException(EOS, "Problem")
except EOS:
raise newException(OSError, "Problem")
except OSError:
for y in [1, 2, 3]:
discard
for y in [1, 2, 3]:
@ -28,8 +28,8 @@ echo "2"
# Third Variety
try:
raise newException(EOS, "Problem")
except EOS:
raise newException(OSError, "Problem")
except OSError:
block:
break
@ -38,8 +38,8 @@ echo "3"
# Fourth Variety
block:
try:
raise newException(EOS, "Problem")
except EOS:
raise newException(OSError, "Problem")
except OSError:
break
echo "4"
echo "4"