* fixes #15280 [backport:1.2] * make tests green again * adapt tests
This commit is contained in:
parent
217675cf84
commit
3f00a738db
4 changed files with 49 additions and 5 deletions
|
|
@ -184,7 +184,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 in nkLastBlockStmts or
|
||||
result = it.kind in (nkLastBlockStmts-{nkReturnStmt}) 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