1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Files
v/vlib/v/tests/repl/chained_fields/c2.repl.skip
2020-05-27 19:12:34 +03:00

6 lines
182 B
Plaintext

struct Aaa { mut: v int } struct Bbb { a Aaa } struct Ccc { mut: b Bbb } struct Ddd { mut: c Ccc }
c2 := Ccc{}
c2.b = Bbb{} // Error (c2 immutable)
===output===
`c2` is immutable