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
If I understand #13432 right, it's a correct behaviour. But then it's not correct that getters and setters are inherited in general. I have to overwrite the getter function in my derived class to make the code work as expected. But then the benefit of inheritance is lost in that case, more concretely the inheritence makes no sense at this point because the logic of the parent class is lost. The main problem is that no exception occurres and it's hard to find the cause of this error.
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
TypeScript Version: 2.7.1
Search Terms:
getter inheritance
getter derived
accessor inheritance
Code
Expected behavior:
If I understand #13432 right, it's a correct behaviour. But then it's not correct that getters and setters are inherited in general. I have to overwrite the getter function in my derived class to make the code work as expected. But then the benefit of inheritance is lost in that case, more concretely the inheritence makes no sense at this point because the logic of the parent class is lost. The main problem is that no exception occurres and it's hard to find the cause of this error.
Actual behavior:
Playground Link:
Click
Related Issues:
#13432
The text was updated successfully, but these errors were encountered: