diff options
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index d14830249..ce780ab51 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -1237,10 +1237,7 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) = var body = s.typ.lastSon if body.kind == tyObject: # erases all declared fields - when defined(nimNoNilSeqs): - body.n.sons = @[] - else: - body.n.sons = nil + body.n.sons = @[] popOwner(c) closeScope(c) |