9b832e7f53
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
10 lines
163 B
Zig
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);
|
|
}
|