diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-22 14:37:27 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-22 14:37:27 +0100 |
| commit | c9effb9b9f6dd0400e2396fd2aa6a97e06a14638 (patch) | |
| tree | 94eaa3427d77dda3700e929bfbba0b05b44fcce1 /src/check_stmt.cpp | |
| parent | ef73a284e3e438a25a4e329d59057cfa8cddf44c (diff) | |
Correct ternary if expression type determination
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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); } |