# Sema: ignore comptime params in partial func type check · gitcafe/zig

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

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

Visibility: public

Requested revision: 4405188cf728755d41439e2606b2cba55af96ad9

Requested commit: 4405188cf728755d41439e2606b2cba55af96ad9

Commit: 4405188cf728755d41439e2606b2cba55af96ad9

Tree: 1d01a36137bf6df9b946146abea335905d3ae585

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
Sema: ignore comptime params in partial func type check

This fixes a bug exposed by cd1833044ab7505bc101c85f59889bd3ea3fac80
where a function type would be converted to generic_poison even after
being instantiated due to containing comptime only types.

This could also be fixed by just checking `is_generic_instantiation`
but this way also provides better type names.

Closes #12625

```

## Parents

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

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