diff options
author | cooldome <cdome@bk.ru> | 2018-03-29 08:19:03 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-03-29 09:19:03 +0200 |
commit | bcda71a8a7c05566d729cf83f051dbc51649f6d5 (patch) | |
tree | 982055df293cdcf1bc0d38558e0c1464bd394c8f /tests/exception | |
parent | 50229293ae5898acc2c30f9cb87b59e2fa0b236a (diff) | |
download | Nim-bcda71a8a7c05566d729cf83f051dbc51649f6d5.tar.gz |
fixes #7414 (#7434)
Diffstat (limited to 'tests/exception')
-rw-r--r-- | tests/exception/tfinally.nim | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/tests/exception/tfinally.nim b/tests/exception/tfinally.nim index e5315a318..7a218b444 100644 --- a/tests/exception/tfinally.nim +++ b/tests/exception/tfinally.nim @@ -7,6 +7,11 @@ msg1 msg2 finally2 finally1 +----------- +except1 +finally1 +except2 +finally2 ''' """ # Test return in try statement: @@ -39,4 +44,19 @@ proc nested_finally = finally: echo "finally1" -nested_finally() \ No newline at end of file +nested_finally() + +echo "-----------" +#bug 7414 +try: + try: + raise newException(Exception, "Hello") + except: + echo "except1" + raise + finally: + echo "finally1" +except: + echo "except2" +finally: + echo "finally2" \ No newline at end of file |