summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2020-06-29 08:49:53 +0200
committerGitHub <noreply@github.com>2020-06-29 08:49:53 +0200
commit299ddda5f6eaceab0bde443159bd17bab1cdf2f1 (patch)
tree42b158d7ef0f62a3f98552fbf7102cd7f5cc714c /tests
parent37325564689c638ef409c79b8380d7564f173c72 (diff)
downloadNim-299ddda5f6eaceab0bde443159bd17bab1cdf2f1.tar.gz
Make unreachable code a warning instead of an error (#14816)
* Make unreachable code a warning

* Adapt test

* Trigger CI
Diffstat (limited to 'tests')
-rw-r--r--tests/controlflow/tstatret.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/controlflow/tstatret.nim b/tests/controlflow/tstatret.nim
index e0f816c7d..a3558e6f4 100644
--- a/tests/controlflow/tstatret.nim
+++ b/tests/controlflow/tstatret.nim
@@ -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() =