<TypeName> is not a Class or an Enumeration, or there is the private Directive in the Description

Description

Identifier of a class or a field is expected to be specified in the code, but the specified identifier corresponds to an object of another type.

Troubleshooting Tips

Check the type of the specified object and its visibility scope.

Example

Unit No.1

Class ParentClass: Object
    
End Class ParentClass;

Unit No.2

Class TestClass: ParentClass
    
End Class TestClass;

Unit No.1 is connected to Unit No.2.

When the specified code is compiled, the following error is displayed: ParentClass is not a class or an enumeration, or there is the private directive in the description. To resolve the error, add the access modifier Public to the description of the ParentClass class in the Unit No.1.

See also:

Compiler Messages