You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static var works at toplevel but not inside a proc: Error: cannot evaluate at compile time: s
whether it's by design or not, couldn't this be made to work?
Example
whendefined case1: # D20200405T172229:heretemplatefun1() =static:
var s =@[10,11,12] # worksfun1()
procfun2() =static:
var s =@[10,11,12] # Error: cannot evaluate at compile time: sfun2()
whendefined case2:
procfun2() =const a =block:
var s =@[10,11,12] # ditto
s
fun2()
Current Output
Error: cannot evaluate at compile time: s
Expected Output
works?
Possible Solution
In file xyz there is a call that might be the cause of it.
static var works at toplevel but not inside a proc: Error: cannot evaluate at compile time: s
whether it's by design or not, couldn't this be made to work?
Example
Current Output
Error: cannot evaluate at compile time: s
Expected Output
works?
Possible Solution
Additional Information
opcLdDeref
(eg via addr) gives wrong results in inside static block nim-lang/Nim#13887?The text was updated successfully, but these errors were encountered: