Open jordanLatta155 opened 1 year ago
Interesting ... makes me wonder if it shouldn't simply end in return true;
instead. @reicheratwork am I barking up the right tree?
Let me have a look at this
Also found some other issues that were exposed by creating a unittest that used unions with default cases, fixing those as well :)
@jordanLatta155 , can I count on you to verify my fix and review my PR when I create it?
I have an IDL union with an enum discriminator with one of the enum cases being empty. The generated C++ code's == operator will return false when comparing two "empty" unions , even if their discriminator is the same.
example: IDL:
C++:
The last
return false
in the generated C++ is the branched reached when both_d()
are equal toAllocationState::Free
.