Statechart Checks : (C2015) Elements containing comparisons of unions: (not supported in Code Generation)

(C2015) Elements containing comparisons of unions: (not supported in Code Generation)

Elements contain comparisons of two union data-items. The comparisons of two unions is ambiguous because the result depends on which field of the unions is the current field in each element.
Error In:
Completeness
Erroneous Elements:
Actions, states, conditions, and transitions