diff options
Diffstat (limited to 'tests/nimdoc/t17615.nim')
-rw-r--r-- | tests/nimdoc/t17615.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/nimdoc/t17615.nim b/tests/nimdoc/t17615.nim new file mode 100644 index 000000000..77ae35a15 --- /dev/null +++ b/tests/nimdoc/t17615.nim @@ -0,0 +1,11 @@ +discard """ + cmd: "nim doc -r $file" + errormsg: "runnableExamples must appear before the first non-comment statement" + line: 10 +""" + +func fn*() = + ## foo + discard + runnableExamples: + assert true |