Here I have made an example of what is happening
#module A
static:
var test=0
proc test_proc(): void {.discardable,compileTime.} =
var a = test
echo a
#module B
import A
static:
test_proc()
this will give me an "Error: cannot evaluate at compile time: test" for line 6 of module A
