diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2018-12-04 07:48:08 -0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-12-04 16:48:08 +0100 |
commit | d502ddea9ec16a5ca12c070dd30030bbb9471e57 (patch) | |
tree | b9dbc7b9acb3f9e5a86975739616dc8b474b8351 /compiler/semstmts.nim | |
parent | e3e5ae287f9a10ab9ee350e64982f21c44238594 (diff) | |
download | Nim-d502ddea9ec16a5ca12c070dd30030bbb9471e57.tar.gz |
fix #9832 (fixup) (#9859)
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 425355fcd..e0542e1e7 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -1963,7 +1963,8 @@ proc semStmtList(c: PContext, n: PNode, flags: TExprFlags): PNode = case n.sons[j].kind of nkPragma, nkCommentStmt, nkNilLit, nkEmpty, nkBlockExpr, nkBlockStmt, nkState: discard - else: localError(c.config, n.sons[j].info, "unreachable statement after '{.noReturn.}' proc") + else: localError(c.config, n.sons[j].info, + "unreachable statement after 'return' statement or '{.noReturn.}' proc") else: discard if result.len == 1 and |