Files
Nim/tests/reject/tstatret.nim
2013-03-16 23:53:07 +01:00

13 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