Closed ManasviGoyal closed 11 months ago
I realised that this issue isn't exactly with just union
but this error will be thrown every time we have type
that is used as the type
of more that one id
. In these cases, the parent is of kaitai::kstruct
type so we need to know the parent somehow so that we can add the reference of the parent builder to the current builder.
For
ksy
files withSwitchType
, we need aUnionBuilder
. Currently, we have an implementation for it but it only works when theUnionBuilder
types and primitive. It fails forUserType
.