# Fix tuple default values · gitcafe/zig

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

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

Visibility: public

Requested revision: f803761e13a65ccbc6a5508f2dc2d7723b010dab

Requested commit: f803761e13a65ccbc6a5508f2dc2d7723b010dab

Commit: f803761e13a65ccbc6a5508f2dc2d7723b010dab

Tree: a913a11999ae074ffb5e59bfb13c973f13f659b2

Author: John Schmidt

Committer: Andrew Kelley

## Message

```
Fix tuple default values

- Add default values to the list of comptime-known elements in
  `zirValidatePtrArrayInit`
- In `structFieldValueComptime`, only assert `haveFieldInits` if we
  enter the`fieldIsComptime` branch (otherwise they are not needed).

```

## Parents

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

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