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
classExceptionextendsError{constructor(msg: string){super(msg);}publicprintMsg(){console.log(this.message);}}lete=newException("testing!");e.printMsg();// printMsg is now undefined
Expected behavior:
Members defined on the extending class should be available for use. This worked fine a few days ago for me in 2.0.x. Upgrading to 2.1.x I have seen this issue.
TypeScript Version: 2.1.1 / nightly (2.1.0-dev.20161109)
Code
Expected behavior:
Members defined on the extending class should be available for use. This worked fine a few days ago for me in 2.0.x. Upgrading to 2.1.x I have seen this issue.
Actual behavior:
Members are undefined.
It's possible I may be doing something wrong here but it seems to me that this should work. I wonder if this has anything to do with how inheritance is generated to support Custom Elements (https://github.com/Microsoft/TypeScript/wiki/What's-new-in-TypeScript#use-returned-values-from-super-calls-as-this)
The text was updated successfully, but these errors were encountered: