mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 03:32:32 +00:00
19 lines
274 B
Nim
19 lines
274 B
Nim
|
|
var
|
|
e = "abc"
|
|
|
|
raise newException(EIO, e & "ha!")
|
|
|
|
template t() = echo(foo)
|
|
|
|
var foo = 12
|
|
t()
|
|
|
|
|
|
template test_in(a, b, c: expr): bool {.immediate, dirty.} =
|
|
var result {.gensym.}: bool = false
|
|
false
|
|
|
|
when isMainModule:
|
|
assert test_in(ret2, "test", str_val)
|