# Sema: fix in-memory coercion of functions introducing new generic parameters · gitcafe/zig

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

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

Visibility: public

Requested revision: eedfce92b0363af1b6783ab626690be0aebf4e94

Requested commit: eedfce92b0363af1b6783ab626690be0aebf4e94

Commit: eedfce92b0363af1b6783ab626690be0aebf4e94

Tree: 46737c202817453f4ebe2bcbf529b29c51946d09

Author: mlugg

Committer: Alex Rønne Petersen

## Message

```
Sema: fix in-memory coercion of functions introducing new generic parameters

While it is not allowed for a function coercion to change whether a
function is generic, it *is* okay to make existing concrete parameters
of a generic function also generic, or vice versa. Either of these cases
implies that the result is a generic function, so comptime type checks
will happen when the function is ultimately called.

Resolves: #21099

```

## Parents

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

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