You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classObjextendsDefineObject{staticgetdefine(){return{age: 5};}}constobj=newObj();obj.age="10";// Uncaught Error: Type value '10' is not of type Number.
Currently, this throws:
...but this doesn't:
I think we should infer the type of expando properties the first time they're set.
The text was updated successfully, but these errors were encountered: