mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: fix error declaration on a value (#6390)
This commit is contained in:
parent
e2e683199d
commit
608df40058
@ -1844,7 +1844,11 @@ pub fn (mut c Checker) assign_stmt(mut assign_stmt ast.AssignStmt) {
|
||||
assign_stmt.pos)
|
||||
}
|
||||
}
|
||||
else {}
|
||||
else {
|
||||
if is_decl {
|
||||
c.error('non-name `$left` on left side of `:=`', left.position())
|
||||
}
|
||||
}
|
||||
}
|
||||
left_type_unwrapped := c.unwrap_generic(left_type)
|
||||
right_type_unwrapped := c.unwrap_generic(right_type)
|
||||
|
Loading…
Reference in New Issue
Block a user