# Sema: evaluate generic instantiations in fn decls capture scope · gitcafe/zig

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

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

Visibility: public

Requested revision: 8bd94759bf48c3247d4de14806ff2f510cb36591

Requested commit: 8bd94759bf48c3247d4de14806ff2f510cb36591

Commit: 8bd94759bf48c3247d4de14806ff2f510cb36591

Tree: 4f761c514223e41130806361ebec476c174f4095

Author: John Schmidt

Committer: Andrew Kelley

## Message

```
Sema: evaluate generic instantiations in fn decls capture scope

The generic call `S.foo()` was evaluated with the
capture scope of the owner decl (i.e the `test` block), when it should
use the capture scope of the function declaration.

```

## Parents

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

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