summary refs log tree commit diff stats
path: root/tests/reject/tstatret.nim
blob: bf90255a017ae6e0ccf280b63a24f1b8349a6619 (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