# \`@sizeOf\` returns 0 for comptime types · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/fb2acaff067dd6b385de7f2bd2726bdfebbf841f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: fb2acaff067dd6b385de7f2bd2726bdfebbf841f

Requested commit: fb2acaff067dd6b385de7f2bd2726bdfebbf841f

Commit: fb2acaff067dd6b385de7f2bd2726bdfebbf841f

Tree: 1dce5178adc5066eba68510d36baed06575aad0a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
`@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

```

## Parents

- [733c547a65b005338c89e3b6a6cb6e817bee632b](https://git.cafe/gitcafe/zig/commit/733c547a65b005338c89e3b6a6cb6e817bee632b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/fb2acaff067dd6b385de7f2bd2726bdfebbf841f?format=markdown)
