Files
Nim/tests/vm/tgloballetfrommacro.nim
2019-08-31 19:32:59 +02:00

14 lines
232 B
Nim

discard """
errormsg: "cannot evaluate at compile time: BUILTIN_NAMES"
line: 11
"""
import sets
let BUILTIN_NAMES = toSet(["int8", "int16", "int32", "int64"])
macro test*(): bool =
echo "int64" notin BUILTIN_NAMES
echo test()