This commit is contained in:
parent
3c36aed100
commit
c245cfc1fd
2 changed files with 14 additions and 1 deletions
13
tests/js/ttryexceptnewsyntax.nim
Normal file
13
tests/js/ttryexceptnewsyntax.nim
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
discard """
|
||||
output: '''hello'''
|
||||
"""
|
||||
|
||||
type
|
||||
MyException = ref Exception
|
||||
|
||||
#bug #5986
|
||||
|
||||
try:
|
||||
raise MyException(msg: "hello")
|
||||
except MyException as e:
|
||||
echo e.msg
|
||||
Loading…
Add table
Add a link
Reference in a new issue