mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 03:32:32 +00:00
10 lines
251 B
Nim
10 lines
251 B
Nim
discard """
|
|
nimout: '''
|
|
tstatret.nim(9, 7) Warning: unreachable code after 'return' statement or '{.noReturn.}' proc [UnreachableCode]
|
|
'''
|
|
"""
|
|
# no statement after return
|
|
proc main() =
|
|
return
|
|
echo("huch?") #ERROR_MSG statement not allowed after
|