mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
@sizeOf returns 0 for comptime types
This defines `@sizeOf` to be the runtime size of a type, which means that it is zero for types such as comptime_int, type, and (enum literal). See #2209
This commit is contained in:
parent
733c547a65
commit
fb2acaff06
4 changed files with 25 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue