zig/test/behavior/usingnamespace/file_1.zig
Veikka Tuominen 9b832e7f53 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
2022-11-11 17:59:53 +02:00

10 lines
163 B
Zig

const std = @import("std");
const expect = std.testing.expect;
const imports = @import("imports.zig");
const A = 456;
test {
try expect(imports.A == 123);
}