v/vlib/v/checker/tests/field_can_not_be_from_the_s...

12 lines
112 B
V

type Foo = Bar
struct Bar {
pfield &Foo = 0
field Foo = Bar{}
}
fn main() {
bar := Bar{}
println(bar)
}