If both the item and the type specify access modifiers, they must match, or at least the type be more visible than the item. See Access Modifiers for more information.
In the following example, you must change one of the access modifiers to match the other, or remove the modifiers completely (in which case, PUBLIC visibility is assumed).
class-id Animal. 01 aType type Canine PUBLIC. class-id Canine PRIVATE. ... end class. end class.