v/vlib/v/checker/tests/struct_assigned_to_pointer_...

8 lines
82 B
V

struct Foo { x int }
fn main() {
mut f := &Foo{ 10 }
f = Foo{ x: 20 }
_ = f
}