diff options
Diffstat (limited to 'tests/nimdoc/t15916.nim')
-rw-r--r-- | tests/nimdoc/t15916.nim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/nimdoc/t15916.nim b/tests/nimdoc/t15916.nim new file mode 100644 index 000000000..c6c09d94b --- /dev/null +++ b/tests/nimdoc/t15916.nim @@ -0,0 +1,16 @@ +discard """ +cmd: "nim doc --hints:off $file" +action: "compile" +joinable: false +""" + +type + Test* = object + id: int + +proc initTest*(id: int): Test = + result.id = id + +proc hello*() = + runnableExamples: + discard |