change runnableExamples implementation; fixes #8641; fixes #7135; runnableExamples works for templates and generics
This commit is contained in:
parent
4cf704bb3e
commit
1948eadc24
5 changed files with 70 additions and 42 deletions
|
|
@ -30,6 +30,7 @@ template closeImpl(body: untyped) {.dirty.} =
|
|||
body
|
||||
try:
|
||||
generateIndex(g.doc)
|
||||
testExamples(g.doc)
|
||||
except IOError:
|
||||
discard
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue