| ... | ... | @@ -667,7 +667,7 @@ pub const Scope = struct { |
| 667 | 667 | return switch (scope.tag) { |
| 668 | 668 | .block => scope.cast(Block).?.src_decl, |
| 669 | 669 | .file => null, |
| 670 | | .namespace => null, |
| 670 | .namespace => scope.cast(Namespace).?.getDecl(), |
| 671 | 671 | .decl_ref => scope.cast(DeclRef).?.decl, |
| 672 | 672 | }; |
| 673 | 673 | } |
| ... | ... | @@ -3331,13 +3331,12 @@ pub fn analyzeExport( |
| 3331 | 3331 | .{symbol_name}, |
| 3332 | 3332 | ); |
| 3333 | 3333 | errdefer msg.destroy(mod.gpa); |
| 3334 | | try mod.errNote( |
| 3335 | | &other_export.owner_decl.namespace.base, |
| 3336 | | other_export.src, |
| 3337 | | msg, |
| 3338 | | "other symbol here", |
| 3339 | | .{}, |
| 3340 | | ); |
| 3334 | const other_src_loc: SrcLoc = .{ |
| 3335 | .file_scope = other_export.owner_decl.namespace.file_scope, |
| 3336 | .parent_decl_node = other_export.owner_decl.src_node, |
| 3337 | .lazy = other_export.src, |
| 3338 | }; |
| 3339 | try mod.errNoteNonLazy(other_src_loc, msg, "other symbol here", .{}); |
| 3341 | 3340 | mod.failed_exports.putAssumeCapacityNoClobber(new_export, msg); |
| 3342 | 3341 | new_export.status = .failed; |
| 3343 | 3342 | return; |