Fix #4229 for edge case os.Error/os.Errno legacy bodge

This commit is contained in:
gingerBill
2024-09-11 12:01:01 +01:00
parent b379d25a12
commit 9b06ea5bfd
2 changed files with 8 additions and 2 deletions

View File

@@ -4602,7 +4602,7 @@ gb_internal void convert_to_typed(CheckerContext *c, Operand *operand, Type *tar
(operand->value.kind == ExactValue_Integer ||
operand->value.kind == ExactValue_Float)) {
operand->mode = Addressing_Value;
target_type = t_untyped_nil;
// target_type = t_untyped_nil;
operand->value = empty_exact_value;
update_untyped_expr_value(c, operand->expr, operand->value);
break;