summary refs log blame commit diff stats
path: root/tests/js/ttryexceptnewsyntax.nim
blob: 2573c3727a879374e744013968c60e15e937fb22 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                 
discard """
  output: '''hello'''
"""

type
  MyException = ref Exception

#bug #5986

try:
  raise MyException(msg: "hello")
except MyException as e:
  echo e.msg