mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-28 18:24:01 +00:00
committed by
Andreas Rumpf
parent
326a333c8b
commit
6e01be34ef
13
tests/vm/tgloballetfrommacro.nim
Normal file
13
tests/vm/tgloballetfrommacro.nim
Normal file
@@ -0,0 +1,13 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user