Open AlexandreCassagne opened 9 months ago
Mutators change the value of the builder payload, but they cannot change its type. Having mutators that can change the type is a more complex feature (which would also require more complex syntax) that is not currently implemented.
I have an example use case that either does not work currently, or I am deeply misunderstanding the documentation ;-)
The "goal" comment describes the use case, i.e. two different paths to the completed builder.
Of course, there may be multiple other paths.
I have tried several combinations but none work. Is it because I am using generics? Or am I trying to do something that is currently unsupported?