Work on declaration inheritance: checks for inherited fields.