got rid of 'accept' dir in the tests
This commit is contained in:
parent
d0772feb08
commit
a274f3bf5b
264 changed files with 5 additions and 7 deletions
18
tests/run/tfinally3.nim
Executable file
18
tests/run/tfinally3.nim
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
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
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue