# Sema: if generic function evaluates to another generic function call it inline · gitcafe/zig

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

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

Visibility: public

Requested revision: e0fb0770d1012e1a5afba947ba96dc53fe2ca45c

Requested commit: e0fb0770d1012e1a5afba947ba96dc53fe2ca45c

Commit: e0fb0770d1012e1a5afba947ba96dc53fe2ca45c

Tree: 5ff2755649da691d86e26367b05880aa2b3771c0

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

````
Sema: if generic function evaluates to another generic function call it inline

```zig
fn foo(a: anytype, b: @TypeOf(a)) void { _ = b; }
test {
    // foo evaluates to `fn (type) void` and must be called inline
    foo(u32, u32);
}
```

````

## Parents

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

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