# sema: load the correct AST in failWithInvalidComptimeFieldStore · gitcafe/zig

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

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

Visibility: public

Requested revision: b6bda5183e44e88b53d3e51c3599d8889fb1bdb8

Requested commit: b6bda5183e44e88b53d3e51c3599d8889fb1bdb8

Commit: b6bda5183e44e88b53d3e51c3599d8889fb1bdb8

Tree: a93d14f828db1e4e610eaa7dd1b8d71faf9c42d9

Author: John Schmidt

Committer: John Schmidt

## Message

```
sema: load the correct AST in failWithInvalidComptimeFieldStore

The container we want to get the fields from might not be declared in the
same file as the block we are analyzing, so we should get the AST from
the decl's file instead.

```

## Parents

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

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