| ... | @@ -250,10 +250,9 @@ pub const Type = struct { | ... | @@ -250,10 +250,9 @@ pub const Type = struct { |
| 250 | try print(error_union_type.payload_type.toType(), writer, mod); | 250 | try print(error_union_type.payload_type.toType(), writer, mod); |
| 251 | return; | 251 | return; |
| 252 | }, | 252 | }, |
| 253 | .inferred_error_set_type => |index| { | 253 | .inferred_error_set_type => |func_index| { |
| 254 | const func = mod.iesFuncIndex(index); | | |
| 255 | try writer.writeAll("@typeInfo(@typeInfo(@TypeOf("); | 254 | try writer.writeAll("@typeInfo(@typeInfo(@TypeOf("); |
| 256 | const owner_decl = mod.funcOwnerDeclPtr(func); | 255 | const owner_decl = mod.funcOwnerDeclPtr(func_index); |
| 257 | try owner_decl.renderFullyQualifiedName(mod, writer); | 256 | try owner_decl.renderFullyQualifiedName(mod, writer); |
| 258 | try writer.writeAll(")).Fn.return_type.?).ErrorUnion.error_set"); | 257 | try writer.writeAll(")).Fn.return_type.?).ErrorUnion.error_set"); |
| 259 | }, | 258 | }, |