| ... | ... | @@ -8323,7 +8323,7 @@ fn coerceNum( |
| 8323 | 8323 | return sema.mod.fail(&block.base, inst_src, "TODO float to int", .{}); |
| 8324 | 8324 | } else if (src_zig_tag == .Int or src_zig_tag == .ComptimeInt) { |
| 8325 | 8325 | if (!val.intFitsInType(dest_type, target)) { |
| 8326 | | return sema.mod.fail(&block.base, inst_src, "type {} cannot represent integer value {}", .{ inst_ty, val }); |
| 8326 | return sema.mod.fail(&block.base, inst_src, "type {} cannot represent integer value {}", .{ dest_type, val }); |
| 8327 | 8327 | } |
| 8328 | 8328 | return try sema.addConstant(dest_type, val); |
| 8329 | 8329 | } |