v/vlib/v/checker/tests/sum_type_assign_non_variant...

8 lines
261 B
Plaintext

vlib/v/checker/tests/sum_type_assign_non_variant_err.vv:11:6: error: cannot assign to `w`: expected `Stmt`, not `IfExpr`
9 | fn main() {
10 | mut w := Stmt(AnotherThing{})
11 | w = IfExpr{}
| ~~~~~~~~
12 | _ = w
13 | }