We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
result
Error: ignored invalid for loop for it
#
##
proc genImplicitReturn(c: var Con) = if c.owner.kind in {skProc, skFunc, skMethod, skIterator, skConverter} and resultPos < c.owner.ast.len: gen(c, c.owner.ast[resultPos]) proc genReturn(c: var Con; n: PNode) = if n[0].kind != nkEmpty: gen(c, n[0]) else: genImplicitReturn(c) genBreakOrRaiseAux(c, 0, n)
of nkBlockStmt, nkBlockExpr: result = copyNode(n) result.add n[0] var bodyScope = nestedScope(s) result.add if n[1].typ.isEmptyType or willProduceStmt: processScope(c, bodyScope, processCall(n[1], bodyScope)) else: processScopeExpr(c, bodyScope, n[1], processCall)
proc transformBlock(c: PTransf, n: PNode): PNode = var labl: PSym if c.inlining > 0: labl = newLabel(c, n[0]) idNodeTablePut(c.transCon.mapping, n[0].sym, newSymNode(labl)) else: labl = if n[0].kind != nkEmpty: n[0].sym # already named block? -> Push symbol on the stack else: newLabel(c, n) c.breakSyms.add(labl) result = transformSons(c, n) discard c.breakSyms.pop result[0] = newSymNode(labl)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
links
result
for lent or var annotations to work · Issue #14420 · nim-lang/Nim(was fixed but the point remains)
Error: ignored invalid for loop for it
triggered when changing a#
to a##
nim-lang/Nim#9230result
as a normal variable? nim-lang/compilerdev#14TODO
scratch
The text was updated successfully, but these errors were encountered: