summary refs log blame commit diff stats
path: root/tests/exception/texcsub.nim
blob: 463e956135556e58ca822b48e8154a5e6d1f9794 (plain) (tree)
1
2
3
4
5
6
7
8
9
           

                   


                                          

                                              
                
       
              
 
            
discard """
  output: "caught!"
"""
# Test inheritance for exception matching:

try:
  raise newException(OSError, "dummy message")
except Exception:
  echo "caught!"
except:
  echo "wtf!?"

#OUT caught!