summary refs log tree commit diff stats
path: root/tests/controlflow/tstatret.nim
blob: d655f55953b821b5755a08029c75b1fdf30460a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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