Compiler Error C0089

Message

Interface of the overridden method ‘{0}’ of the interface ‘{1}’ does not match the declaration

Message Cause

The signature of the implemented method does not match the signature of the method in the interface.

Solution

Make sure that the same return types and parameters are declared.

Error Example

PROGRAM PLC_PRG
VAR
 inst : FB;
END_VAR

INTERFACE XY
METHOD METH1
VAR_INPUT
 iPar : INT;
END_VAR

FUNCTION_BLOCK FB IMPLEMENTS XY
VAR
END_VAR
METHOD METH1
VAR_INPUT
END_VAR

--> C0089: Interface of the overridden method 'METH1' of the interface 'XY' does not match the declaration