diff options
Diffstat (limited to 'compiler/semgnrc.nim')
-rw-r--r-- | compiler/semgnrc.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semgnrc.nim b/compiler/semgnrc.nim index 6c218fa0c..07e7a5136 100644 --- a/compiler/semgnrc.nim +++ b/compiler/semgnrc.nim @@ -166,7 +166,7 @@ proc semGenericStmt(c: PContext, n: PNode, var first = 0 var isDefinedMagic = false - if s != nil: + if s != nil: incl(s.flags, sfUsed) isDefinedMagic = s.magic in {mDefined, mDefinedInScope, mCompiles} let scOption = if s.name.id in ctx: scForceOpen else: scOpen |