diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index ce74749662..96bdc6cba2 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -517,7 +517,7 @@ proc propagateEffects(tracked: PEffects, n: PNode, s: PSym) = proc procVarcheck(n: PNode) = if n.kind in nkSymChoices: for x in n: procVarCheck(x) - elif n.kind == nkSym and n.sym.magic != mNone: + elif n.kind == nkSym and n.sym.magic != mNone and n.sym.kind in routineKinds: localError(n.info, errXCannotBePassedToProcVar, n.sym.name.s) proc notNilCheck(tracked: PEffects, n: PNode, paramType: PType) = diff --git a/config/nimdoc.cfg b/config/nimdoc.cfg index fdc3d2ba01..3e656cb8f3 100644 --- a/config/nimdoc.cfg +++ b/config/nimdoc.cfg @@ -129,6 +129,8 @@ doc.file = """
+ +