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
// @target: ES5classBase{staticmethod(){}staticprop=1;staticgetaccessor(){return1}}classDerivedextendsBase{staticfn(){super.method;// allowed, as expectedsuper.accessor;// not allowed, not expectedsuper.prop;// not allowed, not expected}}
π Actual behavior
super.accessor and super.prop are marked as error. That makes sense in instance methods, but not in static methods, because static properties are not on the prototype.
Bug Report
π Search Terms
super property access static
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
super.accessor
andsuper.prop
are marked as error. That makes sense in instance methods, but not in static methods, because static properties are not on the prototype.Related: #42214
π Expected behavior
No error.
The text was updated successfully, but these errors were encountered: