# Sema: fix generic function with void parameters · gitcafe/zig

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

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

Visibility: public

Requested revision: bb0e28a54ff60581c30156707eeeba1a6bd2b28f

Requested commit: bb0e28a54ff60581c30156707eeeba1a6bd2b28f

Commit: bb0e28a54ff60581c30156707eeeba1a6bd2b28f

Tree: f7a1fd645bff8dedf1c95f38b22ab706aa6b7fe2

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: fix generic function with void parameters

This also fixes a bug that I didn't see causing any problems yet in
generic function instantiation where it would read from a GetOrPutResult
too late.

Also it delays full resolution of generic function type parameters until
after the function body is finished being analyzed.

closes #11291

```

## Parents

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

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