Revert "fixes #15280 [backport:1.2] (#15281)" (#15700)

This reverts commit 3f00a738db.
This commit is contained in:
Clyybber 2020-10-24 11:45:18 +02:00 • committed by GitHub
commit d4022ebe53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 49 deletions

View file

@ -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-{nkReturnStmt}) 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 =