diff options
author | Oscar NihlgÄrd <oscarnihlgard@gmail.com> | 2019-08-02 23:59:04 +0200 |
---|---|---|
committer | cooldome <cdome@bk.ru> | 2019-08-02 22:59:04 +0100 |
commit | 50e921bb941d0f1ef728dfb4623f626015556e10 (patch) | |
tree | 8225032bc91d1ce2fb9b8890bcb3e893705d4a6c /tests/vm | |
parent | a906b3952b2d0c6c33c128fac5f5fad0a2d5a598 (diff) | |
download | Nim-50e921bb941d0f1ef728dfb4623f626015556e10.tar.gz |
VM exception fixes (#11868)
Diffstat (limited to 'tests/vm')
-rw-r--r-- | tests/vm/texception.nim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/vm/texception.nim b/tests/vm/texception.nim new file mode 100644 index 000000000..65a781281 --- /dev/null +++ b/tests/vm/texception.nim @@ -0,0 +1,14 @@ +proc someFunc() = + try: + raise newException(ValueError, "message") + except ValueError as err: + doAssert err.name == "ValueError" + doAssert err.msg == "message" + raise + +static: + try: + someFunc() + except: + discard + \ No newline at end of file |