| ... | ... | @@ -31523,6 +31523,16 @@ fn resolveInferredErrorSet( |
| 31523 | 31523 | if (ies_func_info.return_type.tag() == .generic_poison) { |
| 31524 | 31524 | assert(ies_func_info.cc == .Inline); |
| 31525 | 31525 | } else if (ies_func_info.return_type.errorUnionSet().castTag(.error_set_inferred).?.data == ies) { |
| 31526 | if (ies_func_info.is_generic) { |
| 31527 | const msg = msg: { |
| 31528 | const msg = try sema.errMsg(block, src, "unable to resolve inferred error set of generic function", .{}); |
| 31529 | errdefer msg.destroy(sema.gpa); |
| 31530 | |
| 31531 | try sema.mod.errNoteNonLazy(ies_func_owner_decl.srcLoc(), msg, "generic function declared here", .{}); |
| 31532 | break :msg msg; |
| 31533 | }; |
| 31534 | return sema.failWithOwnedErrorMsg(msg); |
| 31535 | } |
| 31526 | 31536 | // In this case we are dealing with the actual InferredErrorSet object that |
| 31527 | 31537 | // corresponds to the function, not one created to track an inline/comptime call. |
| 31528 | 31538 | try sema.ensureFuncBodyAnalyzed(ies.func); |