Inconsistent type inference to comptime
The langref states (https://ziglang.org/documentation/master/#Local-Variables) "If the initialization value of a const variable is comptime-known, then the variable is also comptime-known."
Arithmetic with
comptime_int and runtime int throws "type cannot represent integer value" even when result is representable
I don't know whether the current behavior was intended, but I believe the above code couldn't work no matter how implemented.