diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-07-16 09:25:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-16 09:25:43 +0800 |
commit | 284a80e96dff6e56415bd25067aa07c915cab5b8 (patch) | |
tree | 4212dc2a718e710e1a257fd52b70183855b39fd6 | |
parent | c11b3f3fc75156c1ce7ad31b631ed4196c3d5ba5 (diff) | |
download | Nim-284a80e96dff6e56415bd25067aa07c915cab5b8.tar.gz |
[minor] fixes wrong error messages (#23841)
-rw-r--r-- | compiler/semstmts.nim | 2 |
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: |