From 9a2736d99962b5eba504726ad72f041694184e48 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Fri, 30 Nov 2018 00:09:32 -0800 Subject: [PATCH] fix #8289 (#9828) --- compiler/docgen.nim | 6 ++++++ compiler/semexprs.nim | 1 + 2 files changed, 7 insertions(+) diff --git a/compiler/docgen.nim b/compiler/docgen.nim index 6f61d020db..67f4108e17 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -400,7 +400,13 @@ proc extractImports(n: PNode; result: PNode) = for i in 0..= 2 and n.lastSon.kind == nkStmtList: when false: + # some of this dead code was moved to `prepareExamples` if sfMainModule in c.module.flags: let inp = toFullPath(c.config, c.module.info) if c.runnableExamples == nil: