# Sema: make check for namespace lookup of private declarations more strict · gitcafe/zig

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

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

Visibility: public

Requested revision: 9b832e7f530833de93857444a86e34c8d99e4755

Requested commit: 9b832e7f530833de93857444a86e34c8d99e4755

Commit: 9b832e7f530833de93857444a86e34c8d99e4755

Tree: 82f844a4f4552d652d5c32ac3d12e718b7d420fe

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
Sema: make check for namespace lookup of private declarations more strict

Previously sema only checked that the private declaration was in the same
file as the lookup but now it also checks that the namespace where
the decl was included from was also in the same file.

Closes #13077

```

## Parents

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

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