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
A perfectly valid and working JS code (ES2015), when transpiled down to ES5, causes typescript to output an error "Only public and protected methods of the base class are accessible via the 'super' keyword" on super.prop access in child class Bar.
According to issue #11575 I understand that this is due to regular properties not being part of the prototype, but getters and setters are on the prototype in the transpiled code.
TypeScript Version: 2.3.2
Code
A perfectly valid and working JS code (ES2015), when transpiled down to ES5, causes typescript to output an error "Only public and protected methods of the base class are accessible via the 'super' keyword" on
super.prop
access in child classBar
.According to issue #11575 I understand that this is due to regular properties not being part of the prototype, but getters and setters are on the prototype in the transpiled code.
No errors are reported when targeting ES2015.
TS Playground link
Expected behavior:
This should be transpiled down correctly to ES5.
Just like it works using Babel as can be seen in the repl here
Actual behavior:
Error: Only public and protected methods of the base class are accessible via the 'super' keyword.
The text was updated successfully, but these errors were encountered: