summary refs log blame commit diff stats
path: root/tests/vm/tgloballetfrommacro.nim
blob: 4be09b56e184268863b6153cbfdf768f3452b6b1 (plain) (tree)
1
2
3
4
5
6
7
8






                                                          
                                                                  




                                  
discard """
errormsg: "cannot evaluate at compile time: BUILTIN_NAMES"
line: 11
"""

import sets

let BUILTIN_NAMES = toHashSet(["int8", "int16", "int32", "int64"])

macro test*(): bool =
  echo "int64" notin BUILTIN_NAMES

echo test()