summary refs log tree commit diff stats
path: root/tests/controlflow/tstatret.nim
blob: 04cac99665a21d47c4207fc50af7d89335e4f9af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
discard """
  file: "tstatret.nim"
  line: 9
  errormsg: "unreachable statement after 'return'"
"""
# no statement after return
proc main() =
  return
  echo("huch?") #ERROR_MSG statement not allowed after