Skip to content

Commit

Permalink
v.checker: v fmt assign.v
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
  • Loading branch information
pierrec committed Jan 26, 2024
1 parent 5d88ab7 commit 00070ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vlib/v/checker/assign.v
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ fn (mut c Checker) assign_stmt(mut node ast.AssignStmt) {
}
} else if left.kind == .blank_ident {
if !is_decl && mut right is ast.None {
c.error('cannot assign a `none` value to blank `_` identifier', right.pos)
c.error('cannot assign a `none` value to blank `_` identifier',
right.pos)
}
left_type = right_type
node.left_types[i] = right_type
Expand Down

0 comments on commit 00070ec

Please sign in to comment.