# Explicit return & more complex wasm enum test · gitcafe/zig

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

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

Visibility: public

Requested revision: 141a0cbb5a1ffd9e6c47bf859064139143ed8c51

Requested commit: 141a0cbb5a1ffd9e6c47bf859064139143ed8c51

Commit: 141a0cbb5a1ffd9e6c47bf859064139143ed8c51

Tree: 712c282ae44f7200741a6a546e51788ce4de0f03

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
Explicit return & more complex wasm enum test

- When returning within a block, we must use an explicit return opcode. For now always emit the opcode when calling return, rather than using implicit return statements.
- Also added a more comprehensive test case to test for enum values using conditions

```

## Parents

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

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