tgloballetfrommacro.nim 236 B

1234567891011121314
  1. discard """
  2. errormsg: "cannot evaluate at compile time: BUILTIN_NAMES"
  3. line: 11
  4. """
  5. import sets
  6. let BUILTIN_NAMES = toHashSet(["int8", "int16", "int32", "int64"])
  7. macro test*(): bool =
  8. echo "int64" notin BUILTIN_NAMES
  9. echo test()