blob: 463e956135556e58ca822b48e8154a5e6d1f9794 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
discard """
output: "caught!"
"""
# Test inheritance for exception matching:
try:
raise newException(OSError, "dummy message")
except Exception:
echo "caught!"
except:
echo "wtf!?"
#OUT caught!
|