summary refs log blame commit diff stats
path: root/tests/reject/tstatret.nim
blob: bf90255a017ae6e0ccf280b63a24f1b8349a6619 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                         


                            
                                                       
 

 
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