Files
Nim/nimdoc/testproject/testproject.nim
Araq 98103b5433 docgen: fixes #9432 [backport]
(cherry picked from commit 48f73aaa1c)
2018-11-03 07:27:53 +01:00

31 lines
464 B
Nim

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]
aEnum()
bEnum()
# bug #9432
proc isValid*[T](x: T): bool = x.len > 0