diff options
-rwxr-xr-x | compiler/semstmts.nim | 3 | ||||
-rwxr-xr-x | todo.txt | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 712a6d2af..abd064a62 100755 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -1078,7 +1078,8 @@ proc insertDestructors(c: PContext, varSection: PNode): varTyp = varId.sym.typ info = varId.info - if varTyp != nil and instantiateDestructor(c, varTyp): + if varTyp != nil and instantiateDestructor(c, varTyp) and + sfGlobal notin varId.sym.flags: var tryStmt = newNodeI(nkTryStmt, info) if j < totalVars - 1: diff --git a/todo.txt b/todo.txt index b79b617c0..cd4b63942 100755 --- a/todo.txt +++ b/todo.txt @@ -1,11 +1,12 @@ version 0.9.2 ============= +- fix closure bug finally - test&finish first class iterators: * nested iterators * document them -- fix closure bug finally - fix marshal bug +- investigate nimgame bug version 0.9.X |