change runnableExamples implementation; fixes #8641; fixes #7135; runnableExamples works for templates and generics

This commit is contained in:
Andreas Rumpf 2018-09-02 22:56:26 +02:00
commit 1948eadc24
5 changed files with 70 additions and 42 deletions

View file

@ -30,6 +30,7 @@ template closeImpl(body: untyped) {.dirty.} =
body
try:
generateIndex(g.doc)
testExamples(g.doc)
except IOError:
discard