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

var aVariable*: array[1,int]