Do not allow to define a static name
property on classes
#3190
Labels
Duplicate
An existing issue was already created
name
property on classes
#3190
Currently it is possible to redefine a static
name
property for classes which leads to some unclear results in runtime - it returns class name at runtime.So I think that there are two problems.
name
as apparent member derived from Function type and as it follows removing a linestatic name = 'Some name'
leads to compilation error.name
by issuing error or warning (if they are) because a good-looking code would works incorrectly in runtime.The text was updated successfully, but these errors were encountered: