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 *self-contained* demonstration of the problem follows...exporttypeConstructor<T>=new(...args: any[])=>T;exportfunctionTagged<TextendsConstructor<{}>>(Base: T){returnclassextendsBase{_tag: string;constructor(...args: any[]){super(...args);this._tag="";}};}
Expected behavior:
Code compiled fine.
Actual behavior:
This code fail to compile with --declaration options. The error is:
Return type of exported function has or is using private name '(Anonymous class)'.
It compiled fine without --declaration. Did I miss something?
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.2.1
Code
Extract from official example:
Expected behavior:
Code compiled fine.
Actual behavior:
This code fail to compile with
--declaration
options. The error is:Return type of exported function has or is using private name '(Anonymous class)'.
It compiled fine without
--declaration
. Did I miss something?The text was updated successfully, but these errors were encountered: