Statechart Checks : (C1025) Data elements without type definition that are used inconsistently

(C1025) Data elements without type definition that are used inconsistently

There are unresolved or explicitly defined data-items with no type definition that are used in expressions in an inconsistent manner.
Error In:
Correctness
Example:
D is an unresolved element (it is not explicitly defined); I is an integer; S is a string. D appears in the following assignments:
D=I; D=S
Erroneous Elements:
Data-items, conditions, and user-defined types