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.nim14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/misc/mjsondoc.nim b/tests/misc/mjsondoc.nim
new file mode 100644
index 000000000..016c8522d
--- /dev/null
+++ b/tests/misc/mjsondoc.nim
@@ -0,0 +1,14 @@
+proc doSomething*(x, y: int): int =
+  ## do something
+  x + y
+
+const
+  a* = 1 ## echo 1234
+  b* = "test"
+
+type
+  MyEnum* = enum
+    foo, bar
+
+proc foo2*[T: int, M: string, U](x: T, y: U, z: M) =
+  echo 1