diff options
Diffstat (limited to 'compiler/semstmts.nim')
-rwxr-xr-x | compiler/semstmts.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 2a16c32e2..04766ae58 100755 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -933,6 +933,8 @@ proc semStaticStmt(c: PContext, n: PNode): PNode = result = evalStaticExpr(c.module, a) if result.isNil: LocalError(n.info, errCannotInterpretNodeX, renderTree(n)) + elif result.kind == nkEmpty: + result = newNodeI(nkNilLit, n.info) # special marker values that indicates that we are # 1) AnalyzingDestructor: currenlty analyzing the type for destructor |