fixes #9832 (#9841) [backport]

This commit is contained in:
Timothee Cour 2018-12-04 02:13:49 -08:00 • committed by Andreas Rumpf
commit 05769020d3
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
discard """
file: "tstatret.nim"
line: 9
errormsg: "unreachable statement after 'return'"
errormsg: "unreachable statement after '{.noReturn.}' proc"
"""
# no statement after return
proc main() =