diff --git a/compiler/closureiters.nim b/compiler/closureiters.nim index f96685cbbd..e85ad4975d 100644 --- a/compiler/closureiters.nim +++ b/compiler/closureiters.nim @@ -167,6 +167,8 @@ type curExcSym: PSym # Current exception externExcSym: PSym # Extern exception: what would getCurrentException() return outside of closure iter + enclosingPragmas: seq[PNode] # stack of pragma blocks wrapping stmtlist + states: seq[State] # The resulting states. Label is int literal. finallyPathStack: seq[FinallyTarget] # Stack of split blocks, whiles and finallies stateLoopLabel: PSym # Label to break on, when jumping between states. @@ -983,9 +985,14 @@ proc transformClosureIteratorBody(ctx: var Ctx, n: PNode, gotoOut: PNode): PNode for j in i + 1..