mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
14 lines
164 B
Nim
14 lines
164 B
Nim
discard """
|
|
output: '''hello'''
|
|
"""
|
|
|
|
type
|
|
MyException = ref Exception
|
|
|
|
#bug #5986
|
|
|
|
try:
|
|
raise MyException(msg: "hello")
|
|
except MyException as e:
|
|
echo e.msg
|