diff options
Diffstat (limited to 'tests/vm/tgloballetfrommacro.nim')
-rw-r--r-- | tests/vm/tgloballetfrommacro.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/vm/tgloballetfrommacro.nim b/tests/vm/tgloballetfrommacro.nim new file mode 100644 index 000000000..4be09b56e --- /dev/null +++ b/tests/vm/tgloballetfrommacro.nim @@ -0,0 +1,13 @@ +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() |