summary refs log tree commit diff stats
path: root/tests/misc/mjsondoc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/mjsondoc.nim')
-rw-r--r--tests/misc/mjsondoc.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/misc/mjsondoc.nim b/tests/misc/mjsondoc.nim
new file mode 100644
index 000000000..e4642f0b4
--- /dev/null
+++ b/tests/misc/mjsondoc.nim
@@ -0,0 +1,11 @@
+proc doSomething*(x, y: int): int =
+  ## do something
+  x + y
+
+const
+  a* = 1 ## echo 1234
+  b* = "test"
+
+type
+  MyEnum* = enum
+    foo, bar