v2 / vlib / v / slow_tests / repl / chained_fields / c2.repl.skip
5 lines · 5 sloc · 182 bytes · 6a32c810703f4ec0c39fe18298ebe6c40acac8f1
Raw
1struct Aaa { mut: v int } struct Bbb { a Aaa } struct Ccc { mut: b Bbb } struct Ddd { mut: c Ccc }
2c2 := Ccc{}
3c2.b = Bbb{} // Error (c2 immutable)
4===output===
5`c2` is immutable
6