Reports illegal inheritance in type declarations e.g. inheritance from primitive types or cyclical inheritance hierarchies.