Open GULPF opened 4 years ago
A proc with static[T] can break a nimscript when imported.
File module.nim
module.nim
proc f1*(f: string) = discard proc f1*(f: static[string]) = discard proc f2*() = let x = "abc" f1(x)
File script.nims
script.nims
import module var foo: bool
$ nim e script.nims Error: cannot evaluate at compile time: foo
Tested with latest devel.
see also https://github.com/nim-lang/Nim/issues/18275
A proc with static[T] can break a nimscript when imported.
Example
File
module.nim
File
script.nims
Current Output
Additional Information
Tested with latest devel.