summary refs log tree commit diff stats
path: root/nimdoc/testproject/testproject.nim
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2018-09-14 18:34:56 -0500
committerGanesh Viswanathan <dev@genotrance.com>2018-09-14 18:34:56 -0500
commit80520eef3cce0b3145dedc71a6652429adb9cc9e (patch)
treed64725d2749cb82bfef997bbbdb443cc4827de6d /nimdoc/testproject/testproject.nim
parente07a256f74b9e89e49287c8a21c1334af43e27c2 (diff)
parentb9dc486db15bb1b4b6f3cef7626733b904d377f7 (diff)
downloadNim-80520eef3cce0b3145dedc71a6652429adb9cc9e.tar.gz
Merge remote-tracking branch 'upstream/devel' into test-6483
Diffstat (limited to 'nimdoc/testproject/testproject.nim')
-rw-r--r--nimdoc/testproject/testproject.nim22
1 files changed, 22 insertions, 0 deletions
diff --git a/nimdoc/testproject/testproject.nim b/nimdoc/testproject/testproject.nim
new file mode 100644
index 000000000..b4f6a58fb
--- /dev/null
+++ b/nimdoc/testproject/testproject.nim
@@ -0,0 +1,22 @@
+
+import subdir / subdir_b / utils
+
+## This is the top level module.
+runnableExamples:
+  import subdir / subdir_b / utils
+  doAssert bar(3, 4) == 7
+  foo(enumValueA, enumValueB)
+
+
+template foo*(a, b: SomeType) =
+  ## This does nothing
+  ##
+  discard
+
+proc bar*[T](a, b: T): T =
+  result = a + b
+
+import std/macros
+
+macro bar*(): untyped =
+  result = newStmtList()