Open silversquirl opened 2 years ago
I'm not sure whether this should be fixed in std or special-cased in the compiler. Being able to truncate usize unconditionally is useful, so maybe @truncate
should just allow up-casting usize
and only usize
.
Zig Version
0.9.0-dev.2023+16b753549
Steps to Reproduce
zig build-obj -target avr-freestanding test.zig
Expected Behavior
The program should compile successfully.
Actual Behavior