Make unreachable code a warning instead of an error (#14816)

* Make unreachable code a warning

* Adapt test

* Trigger CI
This commit is contained in:
Clyybber 2020-06-29 08:49:53 +02:00 • committed by GitHub
commit 299ddda5f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View file

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