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,12 +5,12 @@ discard """
# Test inheritance for exception matching:
try:
raise newException(EOS, "dummy message")
except E_Base:
raise newException(OSError, "dummy message")
except Exception:
echo "caught!"
except:
except:
echo "wtf!?"
#OUT caught!