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:
Simon Hafner 2013-03-10 19:49:02 -05:00
commit d34f95d194
3 changed files with 15 additions and 23 deletions

View file

@ -1,6 +1,9 @@
discard """
file: "tfinally2.nim"
output: "ABCD"
output: "A
B
C
D"
"""
# Test break in try statement:
@ -11,15 +14,15 @@ proc main: int =
try:
break AB
finally:
stdout.write("A")
stdout.write("skipped")
echo("A")
echo("skipped")
finally:
block B:
stdout.write("B")
stdout.write("skipped")
stdout.write("C")
echo("B")
echo("skipped")
echo("C")
finally:
stdout.writeln("D")
echo("D")
discard main() #OUT ABCD