You can get the error:
The hierarchy of the type *classname* is inconsistent
If you are trying to compile a class that requires another class not available. Normally due to compilation errors in the dependent classes. So fix the classes needed by the main class and try again.