mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
checker: add an early checker error for node.left_types.len != node.left.len
in assignments
This commit is contained in:
parent
9082712e10
commit
e374ffb590
1 changed files with 3 additions and 0 deletions
|
@ -4235,6 +4235,9 @@ pub fn (mut c Checker) assign_stmt(mut node ast.AssignStmt) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if node.left_types.len != node.left.len {
|
||||
c.error('assign statement left type number mismatch', node.pos)
|
||||
}
|
||||
}
|
||||
|
||||
fn scope_register_it(mut s ast.Scope, pos token.Position, typ ast.Type) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue