Closed georgysavva closed 3 years ago
This is a huge problem for us as well since we use copier in our unit tests and now have to copy the sub structs and then add them to the top level structs this can be very tedious!
should fixed in latest master.
Here is the setup:
Outer
is the type that I want to copy, it has a nested struct via value:Inner1
, that struct has a nested struct via pointer:*Inner2
. After coping I update the most inner fieldFoo
in the new struct, and expect, that it won't change in the original struct. But it does change.