summary refs log tree commit diff stats
path: root/tests/casestmt
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2020-10-24 11:45:18 +0200
committerGitHub <noreply@github.com>2020-10-24 11:45:18 +0200
commitd4022ebe53062a7e1be5fd55637a3cce39b93a12 (patch)
treed0e3aaa974054e48e3acd7954e44ed52d9f14ea2 /tests/casestmt
parentbf894ad3ebdd393a13b0ff69f5c7a221270639a7 (diff)
downloadNim-d4022ebe53062a7e1be5fd55637a3cce39b93a12.tar.gz
Revert "fixes #15280 [backport:1.2] (#15281)" (#15700)
This reverts commit 3f00a738dbc8319b4dd2b86bf5529c096f2dd243.
Diffstat (limited to 'tests/casestmt')
-rw-r--r--tests/casestmt/tcasestmt.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/casestmt/tcasestmt.nim b/tests/casestmt/tcasestmt.nim
index 2151892aa..53cccdb64 100644
--- a/tests/casestmt/tcasestmt.nim
+++ b/tests/casestmt/tcasestmt.nim
@@ -258,7 +258,7 @@ func foo(input: string): int =
   try:
     parseInt(input)
   except:
-    0
+    return
 
 func foo2(b, input: string): int =
   case b: