mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-09 06:23:25 +00:00
22 lines
310 B
Nim
22 lines
310 B
Nim
|
|
import subdir / subdir_b / utils
|
|
|
|
## This is the top level module.
|
|
runnableExamples:
|
|
doAssert bar(3, 4) == 7
|
|
foo(1, 2)
|
|
|
|
|
|
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()
|