1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: run vfmt over checker.v (#5965)

This commit is contained in:
Lukas Neubert 2020-07-24 19:12:01 +02:00 committed by GitHub
parent 289974dd15
commit 2ccb28a93e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1643,14 +1643,9 @@ pub fn (mut c Checker) assign_stmt(mut assign_stmt ast.AssignStmt) {
left.info = ident_var_info left.info = ident_var_info
if left_type != 0 { if left_type != 0 {
match mut left.obj as v { match mut left.obj as v {
ast.Var { ast.Var { v.typ = left_type }
v.typ = left_type ast.GlobalDecl { v.typ = left_type }
}
ast.GlobalDecl {
v.typ = left_type
}
else {} else {}
} }
/* /*
if left.obj is ast.Var as v { if left.obj is ast.Var as v {