diff options
author | Clyybber <darkmine956@gmail.com> | 2020-06-29 08:49:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-29 08:49:53 +0200 |
commit | 299ddda5f6eaceab0bde443159bd17bab1cdf2f1 (patch) | |
tree | 42b158d7ef0f62a3f98552fbf7102cd7f5cc714c /tests | |
parent | 37325564689c638ef409c79b8380d7564f173c72 (diff) | |
download | Nim-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.nim | 6 |
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() = |