| ... | ... | @@ -2396,7 +2396,19 @@ fn walkInstruction( |
| 2396 | 2396 | |
| 2397 | 2397 | return DocData.WalkResult{ |
| 2398 | 2398 | .typeRef = if (callee.typeRef) |tr| switch (tr) { |
| 2399 | | .type => |func_type_idx| self.types.items[func_type_idx].Fn.ret, |
| 2399 | .type => |func_type_idx| switch (self.types.items[func_type_idx]) { |
| 2400 | .Fn => |func| func.ret, |
| 2401 | else => blk: { |
| 2402 | printWithContext( |
| 2403 | file, |
| 2404 | inst_index, |
| 2405 | "unexpected callee type in walkInstruction.call: `{s}`\n", |
| 2406 | .{@tagName(self.types.items[func_type_idx])}, |
| 2407 | ); |
| 2408 | |
| 2409 | break :blk null; |
| 2410 | }, |
| 2411 | }, |
| 2400 | 2412 | else => null, |
| 2401 | 2413 | } else null, |
| 2402 | 2414 | .expr = .{ .call = call_slot_index }, |