semantic: Handle Enum in getClassParentsScope.