This commit is contained in:
cooldome 2018-03-29 08:19:03 +01:00 • committed by Andreas Rumpf
commit bcda71a8a7
3 changed files with 44 additions and 27 deletions

View file

@ -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()
nested_finally()
echo "-----------"
#bug 7414
try:
try:
raise newException(Exception, "Hello")
except:
echo "except1"
raise
finally:
echo "finally1"
except:
echo "except2"
finally:
echo "finally2"