I am wrong, it fails because a type has been registered with the ID already, thus the message should be clear about the ID clash not the class.