WIP implementation of except ExcType as ident syntax. Refs #3691.
This commit is contained in:
parent
e88a0af494
commit
e8c46d29cd
4 changed files with 82 additions and 3 deletions
10
tests/exception/texcas.nim
Normal file
10
tests/exception/texcas.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
discard """
|
||||
output: '''Hello'''
|
||||
"""
|
||||
|
||||
try:
|
||||
raise newException(Exception, "Hello")
|
||||
except Exception as foobar:
|
||||
echo(foobar.msg)
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue