v/vlib/v/checker/tests/match_mut_with_immutable_va...

11 lines
113 B
V

type Int = byte | int
fn main() {
i := Int(0)
match mut i {
int { i = 1 }
byte { i = 2 }
}
println(i)
}