parent
e3e5ae287f
commit
d502ddea9e
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue