summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/transf.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/transf.nim b/compiler/transf.nim
index 2ac5e1f39..5c7472a39 100644
--- a/compiler/transf.nim
+++ b/compiler/transf.nim
@@ -840,7 +840,7 @@ proc liftDeferAux(n: PNode) =
           let deferPart = newNodeI(nkFinally, n.sons[i].info)
           deferPart.add n.sons[i].sons[0]
           var tryStmt = newNodeI(nkTryStmt, n.sons[i].info)
-          var body = newNodeI(nkStmtList, n.sons[i].info)
+          var body = newNodeI(n.kind, n.sons[i].info)
           if i < last:
             body.sons = n.sons[(i+1)..last]
           tryStmt.addSon(body)