> It looks like this isn't supposed to work and should be flagged by the 
> compiler.

It's more like it was a use-case that was missed and should be added to the 
compiler.

Current workarounds:

  * Use `let` instead of const: 
[https://github.com/status-im/nimbus/blob/bfd71130/nimbus/vm/interpreter/gas_costs.nim#L454-L455](https://github.com/status-im/nimbus/blob/bfd71130/nimbus/vm/interpreter/gas_costs.nim#L454-L455)
  * Use `let {.compileTime.}` instead of const: 
[https://github.com/mratsim/compute-graph-optim/blob/44ada700/e12_syntax_revamp.nim#L1047-L1059](https://github.com/mratsim/compute-graph-optim/blob/44ada700/e12_syntax_revamp.nim#L1047-L1059)


Reply via email to