# Zcu: fix \`nav_ty\` dependency on \`nav_val\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 3d8e760552bc60d2c7f1f4df9c8a05c8aae2b769

Requested commit: 3d8e760552bc60d2c7f1f4df9c8a05c8aae2b769

Commit: 3d8e760552bc60d2c7f1f4df9c8a05c8aae2b769

Tree: 6a0f51b37ca008c94aeaa7c2d47bbbd262d21b25

Author: mlugg

Committer: mlugg

## Message

```
Zcu: fix `nav_ty` dependency on `nav_val`

In the case where a declaration has no type annotation, the interaction
between resolution of `nav_ty` and `nav_val` is a little fiddly because
of the fact that resolving `nav_val` actually implicitly resolves the
type as well. This means `nav_ty` never gets an opporunity to mark its
dependency on the `nav_val`. So, `ensureNavValUpToDate` needs to be the
one to do it. It can't do it too early, though; otherwise, our marking
of dependees as out-of-date/up-to-date will go wrong.

Resolves: #23959

```

## Parents

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

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