summary refs log tree commit diff stats
path: root/tests/nimdoc/t15916.nim
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-11-12 16:31:35 +0800
committerGitHub <noreply@github.com>2020-11-12 09:31:35 +0100
commit402df0b06139183fc8b982058774807a13534daf (patch)
tree1000f57ff2a28ada23e11ddf68dd8e089594d96c /tests/nimdoc/t15916.nim
parent7d4f70280ef33192dc5862f8b4c4d23e9d956b40 (diff)
downloadNim-402df0b06139183fc8b982058774807a13534daf.tar.gz
fix #15916 (#15917) [backport]
* fix #15916

* add testcase for #15916

* add comments
Diffstat (limited to 'tests/nimdoc/t15916.nim')
-rw-r--r--tests/nimdoc/t15916.nim16
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