mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-03 12:34:44 +00:00
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user