this can be solved with a converter. Add:
converter fromBtoA(b: B): A =
result = A(x = b.x)
RunThe y field will not be stored, of course, since X is a seq[A].
this can be solved with a converter. Add:
converter fromBtoA(b: B): A =
result = A(x = b.x)
RunThe y field will not be stored, of course, since X is a seq[A].