0
Fork 0
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:
Andrew Kelley 2019-04-24 22:31:53 -04:00
commit fb2acaff06
No known key found for this signature in database
GPG key ID: 7C5F548F728501A9
4 changed files with 25 additions and 5 deletions