Product Information > JADE Error Messages and System Messages > 6000 through 6999 - JADE Compiler Errors > 6072 - Incompatible types

6072   Incompatible types

Cause

This error occurs when the right-hand operand is of a type that cannot be assigned to the left-hand operand.

In general, the class of the right-hand side must be the same as, or a subclass of, the class of the left-hand side for composite (non-primitive) objects. For the rules for assignment compatibility for primitive objects, see "Assignments", in Chapter 1 of the JADE Developer’s Reference.

When this error occurs for an array or dictionary subscript (using the bracket ([]) subscripting syntax), it indicates that the type of the subscript expression is not compatible with the corresponding key of the array or dictionary.

When this error occurs for the control variable of a foreach instruction, it indicates that the type of the control variable is not compatible with the type of the collection members.

Action

Change the operands or their types so that the types are compatible. In some cases, it may be possible to add a type cast in order to make the operands compatible.