# stage2: TypeInfo for func with generic return type should set null · gitcafe/zig

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

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

Visibility: public

Requested revision: fd43434149658ee482428714e05722e5a12fdecc

Requested commit: fd43434149658ee482428714e05722e5a12fdecc

Commit: fd43434149658ee482428714e05722e5a12fdecc

Tree: a2741731117e8a3cfc1f20232ef393f3434c064a

Author: Mitchell Hashimoto

Committer: Andrew Kelley

## Message

```
stage2: TypeInfo for func with generic return type should set null

Prior to these, the return type was non-null but the value was generic
poison which wasn't usable in user-space. This sets the value to null.
This also adds a behavior test for this.

Co-authored-by: InKryption <inkryption07@gmail.com>

```

## Parents

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

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