From 40bda2eaed7313bcee39fde245c2cf2e5714dbd8 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Mon, 30 Dec 2024 11:40:37 -0300 Subject: [PATCH] fix --- vlib/v/gen/c/for.v | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/vlib/v/gen/c/for.v b/vlib/v/gen/c/for.v index 6b5245811a0549..16880ad47158a5 100644 --- a/vlib/v/gen/c/for.v +++ b/vlib/v/gen/c/for.v @@ -221,18 +221,6 @@ fn (mut g Gen) for_in_stmt(node_ ast.ForInStmt) { mut val_sym := g.table.sym(node.val_type) op_field := g.dot_or_ptr(node.cond_type) - if is_comptime && g.comptime.is_comptime(node.cond) { - mut unwrapped_typ := g.unwrap_generic(node.cond_type) - ctyp := g.unwrap_generic(g.type_resolver.get_type(node.cond)) - if ctyp != ast.void_type { - unwrapped_typ = ctyp - } - val_sym = g.table.sym(unwrapped_typ) - node.val_type = g.table.value_type(unwrapped_typ) - styp = g.styp(node.val_type) - node.scope.update_var_type(node.val_var, node.val_type) - node.cond_type = node.val_type - } mut cond_var := '' cond_is_option := node.cond_type.has_flag(.option) if (node.cond is ast.Ident && !cond_is_option)