The properties must have different names.
Remember that at runtime, JavaScript class instances are just objects, and objects are just mappings from key to value. The property names are the key, and you can’t have two different keys with the same name.