mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
6 lines
182 B
Plaintext
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
|