# sema: \`resolve\{Struct,Union\}Inner\` don't throw away Semas · gitcafe/zig

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

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

Visibility: public

Requested revision: ce92ccccc961992c00a10e714ce9e799956c50f2

Requested commit: ce92ccccc961992c00a10e714ce9e799956c50f2

Commit: ce92ccccc961992c00a10e714ce9e799956c50f2

Tree: 39d25560175d0787a0891c0f8fa25f68bb1ba7cd

Author: David Rubin

Committer: David Rubin

## Message

```
sema: `resolve{Struct,Union}Inner` don't throw away Semas

before this, calls to `resolveTypeFieldsStruct` (now renamed to the more correct `resolveStructFieldTypes`) would just throw away the sema that `resolveStructInner` created and create its own. There is no reason to do this, and we fix it to preserve the sema through it all.

```

## Parents

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

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