# Sema: introduce a mechanism in Value to resolve types · gitcafe/zig

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

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

Visibility: public

Requested revision: 60d8c4739de14823c407245f01c9b7483f3b6e7f

Requested commit: 60d8c4739de14823c407245f01c9b7483f3b6e7f

Commit: 60d8c4739de14823c407245f01c9b7483f3b6e7f

Tree: 8321a331d269b3ce4af0fdd88e99a6421f2a3b5d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: introduce a mechanism in Value to resolve types

This commit adds a new optional argument to several Value methods which
provides the ability to resolve types if it comes to it. This prevents
having duplicated logic inside both Sema and Value.

With this commit, the "struct contains slice of itself" test is passing
by exploiting the new lazy_align Value Tag.

```

## Parents

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

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