Ternary Expressions with UDTs (User Defined Types)
Ternary expressions involving UDTs (User Defined Types) do not appear to work reliably in Pine Script, even when both branches clearly use the same UDT.
Example:
UDT_result = bool1 ? UDT_A : UDT_B
with: type(UDT_A) == type(UDT_B)
I would like to understand why this currently does not work (or does not always work), since at first glance it seems that checking whether both branches use the same UDT type should theoretically be straightforward.