# Sema: disallow fieldParentPtr and offsetOf on comptime fields · gitcafe/zig

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

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

Visibility: public

Requested revision: 94039d66ed4fecb7defc5deeeedd7afa3b773f0c

Requested commit: 94039d66ed4fecb7defc5deeeedd7afa3b773f0c

Commit: 94039d66ed4fecb7defc5deeeedd7afa3b773f0c

Tree: 59e0c2a2033972bdf2ba22a76db7b1236a82dcc5

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
Sema: disallow fieldParentPtr and offsetOf on comptime fields

Comptime fields are tied to the type and behave more like declarations
so these operations cannot return anything useful for them.

```

## Parents

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

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