summary refs log tree commit diff stats
path: root/nimdoc/testproject/testproject.nim
blob: b4f6a58fbddb3ad36e39ad19e5a4d4e66ab546e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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()