Types weren't resolved if they were defined twice.