This commit is contained in:
Timothee Cour 2018-11-30 00:09:32 -08:00 • committed by Andreas Rumpf
commit 9a2736d999
2 changed files with 7 additions and 0 deletions

View file

@ -2046,6 +2046,7 @@ proc semMagic(c: PContext, n: PNode, s: PSym, flags: TExprFlags): PNode =
of mRunnableExamples:
if c.config.cmd == cmdDoc and n.len >= 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: