fix #17615(runnableExamples silently ignored if placed after some code) (#17619)
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
This commit is contained in:
parent
e35946f306
commit
a807233aeb
8 changed files with 41 additions and 28 deletions
|
|
@ -330,13 +330,11 @@ when true: # (most) templates
|
|||
## ok5
|
||||
## ok5b
|
||||
runnableExamples: assert true
|
||||
runnableExamples: discard 1
|
||||
|
||||
## in or out?
|
||||
# this is an edge case; a newline separate last runnableExamples from
|
||||
# next doc comment but AST isnt' aware of it; this could change in future
|
||||
discard 8
|
||||
## out
|
||||
runnableExamples: discard 1
|
||||
|
||||
when true: # issue #14473
|
||||
import std/[sequtils]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue