Compiler Error C0144
Message: Inheritance only allowed in function blocks, Interfaces and Structures
Possible error cause: An attempt is made to use inheritance in an object that does not permit inheritance.
Error correction: Use EXTENDS
in function blocks, interfaces, and structures only.
Example 401. Example of the error:
PROGRAM PLC_PRG VAR inst : DUT_1; END_VAR TYPE DUT: ( enum_member := 0 ); END_TYPE TYPE DUT_1 EXTENDS DUT: ( enum_memberX := 0 ); END_TYPE
Message:
C0144: Inheritance only allowed in function blocks, Interfaces and Structures