Nim/tests/controlflow/tstatret.nim
2014-01-13 02:10:03 +01:00

12 lines
205 B
Nim

discard """
file: "tstatret.nim"
line: 9
errormsg: "statement not allowed after"
"""
# no statement after return
proc main() =
return
echo("huch?") #ERROR_MSG statement not allowed after