* fix #13490
This commit is contained in:
parent
25dc5f76e0
commit
c79df2fb6a
5 changed files with 42 additions and 8 deletions
|
|
@ -181,7 +181,7 @@ proc endsInNoReturn(n: PNode): bool =
|
|||
var it = n
|
||||
while it.kind in {nkStmtList, nkStmtListExpr} and it.len > 0:
|
||||
it = it.lastSon
|
||||
result = it.kind == nkRaiseStmt or
|
||||
result = it.kind in nkLastBlockStmts or
|
||||
it.kind in nkCallKinds and it[0].kind == nkSym and sfNoReturn in it[0].sym.flags
|
||||
|
||||
proc commonType*(x: PType, y: PNode): PType =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue