# Sema: add error for non-comptime param in comptime func · gitcafe/zig

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

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

Visibility: public

Requested revision: ae8d26a6a00a528bdf555689c2a93cb35a3287f2

Requested commit: ae8d26a6a00a528bdf555689c2a93cb35a3287f2

Commit: ae8d26a6a00a528bdf555689c2a93cb35a3287f2

Tree: d72b651523e62b81d0b1733cf2f1a4eced7265db

Author: antlilja

Committer: Veikka Tuominen

## Message

```
Sema: add error for non-comptime param in comptime func

Adds error for taking a non comptime parameter in a function returning a
comptime-only type but not when that type is dependent on a parameter.

Co-authored-by: Veikka Tuominen <git@vexu.eu>

```

## Parents

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

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