From c9effb9b9f6dd0400e2396fd2aa6a97e06a14638 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 22 Oct 2021 14:37:27 +0100 Subject: Correct ternary if expression type determination --- src/check_stmt.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/check_stmt.cpp') diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 4dbc76578..103ffa071 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1728,8 +1728,6 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { Entity *e = pt->results->Tuple.variables[i]; Operand *o = &operands[i]; check_assignment(ctx, o, e->type, str_lit("return statement")); - convert_to_typed(ctx, o, e->type); - if (is_type_untyped(o->type)) { update_untyped_expr_type(ctx, o->expr, e->type, true); } -- cgit v1.2.3