| ... | @@ -11786,7 +11786,7 @@ fn zirSwitchBlock(sema: *Sema, block: *Block, inst: Zir.Inst.Index, operand_is_r | ... | @@ -11786,7 +11786,7 @@ fn zirSwitchBlock(sema: *Sema, block: *Block, inst: Zir.Inst.Index, operand_is_r |
| 11786 | return sema.failWithOwnedErrorMsg(block, msg: { | 11786 | return sema.failWithOwnedErrorMsg(block, msg: { |
| 11787 | const msg = try sema.errMsg(operand_src, "operand of switch loop has comptime-only type '{}'", .{operand_ty.fmt(pt)}); | 11787 | const msg = try sema.errMsg(operand_src, "operand of switch loop has comptime-only type '{}'", .{operand_ty.fmt(pt)}); |
| 11788 | errdefer msg.destroy(gpa); | 11788 | errdefer msg.destroy(gpa); |
| 11789 | try sema.errNote(operand_src, msg, "switch loops are evalauted at runtime outside of comptime scopes", .{}); | 11789 | try sema.errNote(operand_src, msg, "switch loops are evaluated at runtime outside of comptime scopes", .{}); |
| 11790 | break :msg msg; | 11790 | break :msg msg; |
| 11791 | }); | 11791 | }); |
| 11792 | } | 11792 | } |