mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 11:12:37 +00:00
Somehow the test case doesn't crash anymore and the regression in the doc generation is fixed. Fixes #9019
25 lines
393 B
Nim
25 lines
393 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]
|