# stage2: get rid of "unable to monomorphize function" error · gitcafe/zig

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

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

Visibility: public

Requested revision: e974d4c4295c4fbdbc239caa2cf2d653f65662f1

Requested commit: e974d4c4295c4fbdbc239caa2cf2d653f65662f1

Commit: e974d4c4295c4fbdbc239caa2cf2d653f65662f1

Tree: cd69c982cb6d80d6a1c2076c9552ed36b4e98816

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: get rid of "unable to monomorphize function" error

This commit solves the problem in a much simpler way: putting
runtime-known values in place of non-comptime arguments when
instantiating a generic function.

```

## Parents

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

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