Generate type inheritance.