# wasm: All union/tuple/array tests passing · gitcafe/zig

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

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

Visibility: public

Requested revision: 56590218c5054fd5f4076916fd247213a00d5105

Requested commit: 56590218c5054fd5f4076916fd247213a00d5105

Commit: 56590218c5054fd5f4076916fd247213a00d5105

Tree: ecdcceca46d3685106500575fed5273f2e4067c6

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: All union/tuple/array tests passing

This implements improvements/fixes to get all the union, tuple, and array behavior tests passing.
Previously, we lowered parent pointers for field_ptr and element_ptr incompletely. This has now
been improved to recursively lower such pointer.

Also a fix was done to `generateSymbol` when checking a container's layout.
Previously it was assumed to always be a struct. However, the type can also be a tuple, and therefore
panicking. Updating to ask a type's container layout instead allows us to keep a singular branch for both cases.

```

## Parents

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

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