# Sema: fix generic fn instantiation with anytype · gitcafe/zig

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

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

Visibility: public

Requested revision: 83bb3d1ad692127cd51c101b6a01fc853ab72990

Requested commit: 83bb3d1ad692127cd51c101b6a01fc853ab72990

Commit: 83bb3d1ad692127cd51c101b6a01fc853ab72990

Tree: b7a8c22eeb3dcbf252dec787b9437b9aee117dbb

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: fix generic fn instantiation with anytype

When the anytype parameter had only one-possible-value
(e.g. `void`), it would create a mismatch in the function type and the
function call. Now the function type and the callsite both omit the
one-possible-value anytype parameter in instantiated generic functions.

```

## Parents

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

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