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

@ -141,7 +141,6 @@ type
# the generic type has been constructed completely. See
# tests/destructor/topttree.nim for an example that
# would otherwise fail.
runnableExamples*: PNode
template config*(c: PContext): ConfigRef = c.graph.config