nestedTryStmts removed
It makes tests fail and they work fine without. Given my ignorance of the exact workings, I can only rely on the tests.
This commit is contained in:
parent
5ac5bedc66
commit
d34f95d194
3 changed files with 15 additions and 23 deletions
|
|
@ -1,6 +1,8 @@
|
|||
discard """
|
||||
file: "tfinally.nim"
|
||||
output: "came here 3"
|
||||
output: "came
|
||||
here
|
||||
3"
|
||||
"""
|
||||
# Test return in try statement:
|
||||
|
||||
|
|
@ -9,10 +11,10 @@ proc main: int =
|
|||
try:
|
||||
return 1
|
||||
finally:
|
||||
stdout.write("came ")
|
||||
echo("came")
|
||||
return 2
|
||||
finally:
|
||||
stdout.write("here ")
|
||||
echo("here ")
|
||||
return 3
|
||||
|
||||
echo main() #OUT came here 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue