# Sema: validate extern struct field types earlier · gitcafe/zig

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

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

Visibility: public

Requested revision: 794beafb9c2c687d993a0933be258a2ccdf0be4f

Requested commit: 794beafb9c2c687d993a0933be258a2ccdf0be4f

Commit: 794beafb9c2c687d993a0933be258a2ccdf0be4f

Tree: ca823524f3c46647f8cd79417faa5f471009f420

Author: Veikka Tuominen

Committer: Andrew Kelley

## Message

```
Sema: validate extern struct field types earlier

`validateExternType` does not require the type to be resolved so we can
check it earlier. Only doing it in `resolveTypeFully` lead to worse or
missing compile errors.

```

## Parents

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

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