mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-27 17:11:40 +00:00
10 lines
239 B
Nim
10 lines
239 B
Nim
discard """
|
|
errormsg: "unreachable statement after 'return' statement or '{.noReturn.}' proc"
|
|
file: "tstatret.nim"
|
|
line: 9
|
|
"""
|
|
# no statement after return
|
|
proc main() =
|
|
return
|
|
echo("huch?") #ERROR_MSG statement not allowed after
|