summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-07-16 09:25:43 +0800
committerGitHub <noreply@github.com>2024-07-16 09:25:43 +0800
commit284a80e96dff6e56415bd25067aa07c915cab5b8 (patch)
tree4212dc2a718e710e1a257fd52b70183855b39fd6
parentc11b3f3fc75156c1ce7ad31b631ed4196c3d5ba5 (diff)
downloadNim-284a80e96dff6e56415bd25067aa07c915cab5b8.tar.gz
[minor] fixes wrong error messages (#23841)
-rw-r--r--compiler/semstmts.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index 358813410..530490f42 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -172,7 +172,7 @@ proc implicitlyDiscardable(n: PNode): bool =
         of nkElse:
           branch[0]
         else:
-          raiseAssert "Malformed `case` statement in endsInNoReturn"
+          raiseAssert "Malformed `case` statement in implicitlyDiscardable"
     # all branches are discardable
     result = true
   of nkTryStmt: