Inherits Reference < Object
Check if name and type match but if they're different but same index then raise error.