summary refs log tree commit diff stats
path: root/tests/lent/t16898.nim
Commit message (Collapse)AuthorAgeFilesLines
* fix #16898 #17621 (#17628)flywind2021-04-061-0/+31
* fix #16898 * fix #17621 * Update compiler/semtypes.nim
27 ^
d34f95d19 ^

129fcb327 ^
2cdfe35e7 ^
ea2306b30 ^

e80465dac ^
ea2306b30 ^





d34f95d19 ^

e80465dac ^
ea2306b30 ^
d34f95d19 ^


ea2306b30 ^
d34f95d19 ^
e80465dac ^
ea2306b30 ^

2cdfe35e7 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

                       
              

 
    
   

                              
                





                  

                       
              
                


                     
          
             
 

                        

 
discard """
  file: "tfinally2.nim"
  output: '''A
B
C
D'''
"""
# Test break in try statement:

proc main: int =
  try:
    block AB:
      try:
        try:
          break AB
        finally:
          echo("A")
        echo("skipped")
      finally:
        block B:
          echo("B")
      echo("skipped")
    echo("C")
  finally:
    echo("D")

discard main() #OUT ABCD