v/vlib/v/tests/inout/nested_structs.vv

23 lines
185 B
V

module main
struct Bbb {
pass bool
name string
}
fn (b &Bbb) print() {
println(b)
}
struct Aaa {
test bool
b Bbb
}
fn main() {
a := Aaa{}
println(a)
b := Bbb{}
b.print()
}