Invalid Method Redefinition in Interface

Description

An interface inherited from another interface contains the description of a method that has already been described in the parent interface. Redefinition of methods described in parent interfaces is forbidden.

Troubleshooting Tips

Change the method identifier in the parent or child interface. Changing hierarchy of interface inheritance may also be required.

Example

Interface IParentInterface
    Sub Test(s: String);
End Interface IParentInterface;

Interface IChildrenInterface: IParentInterface
    Sub Test(i: Integer);
End Interface IChildrenInterface;

When the specified code is compiled, the string "Sub Test(i: Integer);" displays the following error: Invalid method redefinition in interface. To resolve the error, rename the Test method in the IParentInterface or IChildrenInterface interface.

See also:

Compiler Messages