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



                       











                              

 
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