Skip to content

Commit 3ab8ca6

Browse files
committed
v2: fix a typo
1 parent 0fb3013 commit 3ab8ca6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎vlib/v2/types/checker.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ fn (mut c Checker) expr_impl(expr ast.Expr) Type {
677677
}
678678
// sum type, check variants
679679
if (expected_type is SumType && elem_type !in expected_type.variants)
680-
&& !c.check_types(first_elem_type, elem_type) // everything else {
680+
&& !c.check_types(first_elem_type, elem_type) { // everything else
681681
// TODO: add general method for promotion/coercion
682682
c.error_with_pos('expecting element of type: ${first_elem_type.name()}, got ${elem_type.name()}',
683683
expr.pos)

0 commit comments

Comments
 (0)