summary refs log blame commit diff stats
path: root/tests/exception/tfinally3.nim
blob: 8bccd1a7f890e8465fa59e85c6ebce94db251eb5 (plain) (tree)
1
2
3
4
5
6
7



                       

                              
                 








                      

 
discard """
  file: "tfinally3.nim"
  output: "false"
"""
# Test break in try statement:

proc main: bool =
  while true:
    try:
      return true
    finally:
      break
  return false

echo main() #OUT false