diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index bdfe4b3346..552e62df2f 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -1643,14 +1643,9 @@ pub fn (mut c Checker) assign_stmt(mut assign_stmt ast.AssignStmt) { left.info = ident_var_info if left_type != 0 { match mut left.obj as v { - ast.Var { - v.typ = left_type - } - ast.GlobalDecl { - v.typ = left_type - } + ast.Var { v.typ = left_type } + ast.GlobalDecl { v.typ = left_type } else {} - } /* if left.obj is ast.Var as v {