@@ -29153,15 +29153,15 @@ fn coerceExtra(
2915329153
2915429154 // E!T to T
2915529155 if (inst_ty.zigTypeTag(zcu) == .error_union and
29156- (try sema.coerceInMemoryAllowed(block, inst_ty.errorUnionPayload(zcu), dest_ty , false, target, dest_ty_src, inst_src, null)) == .ok)
29156+ (try sema.coerceInMemoryAllowed(block, dest_ty, inst_ty.errorUnionPayload(zcu), false, target, dest_ty_src, inst_src, null)) == .ok)
2915729157 {
2915829158 try sema.errNote(inst_src, msg, "cannot convert error union to payload type", .{});
2915929159 try sema.errNote(inst_src, msg, "consider using 'try', 'catch', or 'if'", .{});
2916029160 }
2916129161
2916229162 // ?T to T
2916329163 if (inst_ty.zigTypeTag(zcu) == .optional and
29164- (try sema.coerceInMemoryAllowed(block, inst_ty.optionalChild(zcu), dest_ty , false, target, dest_ty_src, inst_src, null)) == .ok)
29164+ (try sema.coerceInMemoryAllowed(block, dest_ty, inst_ty.optionalChild(zcu), false, target, dest_ty_src, inst_src, null)) == .ok)
2916529165 {
2916629166 try sema.errNote(inst_src, msg, "cannot convert optional to payload type", .{});
2916729167 try sema.errNote(inst_src, msg, "consider using '.?', 'orelse', or 'if'", .{});
0 commit comments