...
This commit is contained in:
@@ -555,6 +555,8 @@ pub const Analyzer = struct {
|
||||
for (indices.items) |idx| {
|
||||
if (idx >= scope_start) {
|
||||
const sym = self.symbols.items[idx];
|
||||
// Skip imported symbols — local declarations are allowed to shadow them
|
||||
if (sym.origin != null) continue;
|
||||
if (sym.scope_depth == self.scope_depth) {
|
||||
try self.diagnostics.append(self.allocator, .{
|
||||
.level = .warn,
|
||||
|
||||
Reference in New Issue
Block a user