mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
This reverts commit3f00a738db. (cherry picked from commitd4022ebe53)
This commit is contained in:
@@ -183,7 +183,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 =
|
||||
|
||||
@@ -258,7 +258,7 @@ func foo(input: string): int =
|
||||
try:
|
||||
parseInt(input)
|
||||
except:
|
||||
0
|
||||
return
|
||||
|
||||
func foo2(b, input: string): int =
|
||||
case b:
|
||||
|
||||
Reference in New Issue
Block a user