| ... | @@ -4358,7 +4358,10 @@ fn scanDecl(iter: *ScanDeclIter, decl_inst: Zir.Inst.Index) Allocator.Error!void | ... | @@ -4358,7 +4358,10 @@ fn scanDecl(iter: *ScanDeclIter, decl_inst: Zir.Inst.Index) Allocator.Error!void |
| 4358 | }; | 4358 | }; |
| 4359 | }, | 4359 | }, |
| 4360 | .@"usingnamespace" => info: { | 4360 | .@"usingnamespace" => info: { |
| 4361 | if (iter.pass != .unnamed) return; | 4361 | // TODO: this isn't right! These should be considered unnamed. Name conflicts can happen here. |
| | 4362 | // The problem is, we need to preserve the decl ordering for `@typeInfo`. |
| | 4363 | // I'm not bothering to fix this now, since some upcoming changes will change this code significantly anyway. |
| | 4364 | if (iter.pass != .named) return; |
| 4362 | const i = iter.usingnamespace_index; | 4365 | const i = iter.usingnamespace_index; |
| 4363 | iter.usingnamespace_index += 1; | 4366 | iter.usingnamespace_index += 1; |
| 4364 | break :info .{ | 4367 | break :info .{ |