v/vlib/compiler/tests/repl/chained_fields/d.repl

6 lines
133 B
Plaintext
Raw Normal View History

struct A { mut: v int } struct B { a A } struct C { mut: b B } struct D { mut: c C }
mut d := D{} d.c.b = B{}
'OK'
===output===
OK