Interface can Inherit only Interface

Description

The rule of interface inheritance is violated that is determined by specification of the Fore language.

Troubleshooting Tips

Interface can inherit only interface. Check the inheritance hierarchy.

Example

Interface IMyInterface1

End Interface IMyInterface1;

Interface IMyInterface2: IMyInterface1

End Interface IMyInterface2;

Class MyClass: Object, IMyInterface2
    
End Class MyClass;

Interface IMyInterface3: MyClass

End Interface IMyInterface3;

When the specified code is compiled, the string Interface IMyInterface3: MyClass displays the following error: Interface can inherit only interface. Interface cannot inherit from the MyClass class. Change the inheritance hierarchy and inherit the MyInterface3 interface from the IMyInterface1 interface, or the IMyInterface2 interface.

See also:

Compiler Messages