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

                      
   



                                                      
discard """
  errormsg: "unreachable statement after 'return' statement or '{.noReturn.}' proc"
  file: "tstatret.nim"
  line: 9
"""
# no statement after return
proc main() =
  return
  echo("huch?") #ERROR_MSG statement not allowed after