Skip to content

Commit

Permalink
add test to close #14473
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed May 28, 2020
1 parent 091891b commit afedbaa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nimdoc/testproject/testproject.nim
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ when true: # (most) templates
## out
runnableExamples: discard 1

when true: # issue #14473
import std/[sequtils]
template doit(): untyped =
## doit
## return output only
toSeq([1,2])
echo doit() # using doAssert or similar to avoid echo would "hide" the original bug

when true:
template testNimDocTrailingExample*() =
# this must be last entry in this file, it checks against a bug (that got fixed)
Expand Down

0 comments on commit afedbaa

Please sign in to comment.