operation is runtime due to this operand
for @intFromPtr
#23072
Labels
bug
Observed behavior contradicts documented or intended behavior
Zig Version
0.13.0 (or latest 0.14.0 dev)
Steps to Reproduce and Observed Behavior
Following an example for comptime JSON, I wrote the following:
However, I get the following error when trying to build:
Why is
@intFromPtr
not usable in comptime?Expected Behavior
The code properly deserializes the JSON at compile time.
The text was updated successfully, but these errors were encountered: