diff options
author | Araq <rumpf_a@web.de> | 2014-09-11 00:36:31 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-09-11 00:36:31 +0200 |
commit | e766c7c3cd73ee9dc66266a0c1246a262ce51268 (patch) | |
tree | 15327b05148f8be8954c4144ef0e7ad94afa0559 | |
parent | 2c99991d169d66d5fd2334cfc783761d1ffe25bc (diff) | |
download | Nim-e766c7c3cd73ee9dc66266a0c1246a262ce51268.tar.gz |
minor bugfix for void .compileTime procs
-rw-r--r-- | compiler/semexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index da12ec08c..ff445ecd0 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -662,7 +662,7 @@ proc evalAtCompileTime(c: PContext, n: PNode): PNode = # optimization pass: not necessary for correctness of the semantic pass if {sfNoSideEffect, sfCompileTime} * callee.flags != {} and - {sfForward, sfImportc} * callee.flags == {}: + {sfForward, sfImportc} * callee.flags == {} and n.typ != nil: if sfCompileTime notin callee.flags and optImplicitStatic notin gOptions: return |