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
classA{readonlyn=0;constructor(){this.n=1;// Type '1' is not assignable to type '0'}}classB{constructor(readonlyn=0){}}classCextendsB{constructor(){super(1);// Argument of type '1' is not assignable to parameter of type '0 | undefined'.}}
Expected behavior:
Is this behavior expected (breaking change vs 2.0.8)?
To me this should be valid, particularly the 2nd case.
Actual behavior:
Errors displayed in comments.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.1.1
Code
Expected behavior:
Is this behavior expected (breaking change vs 2.0.8)?
To me this should be valid, particularly the 2nd case.
Actual behavior:
Errors displayed in comments.
The text was updated successfully, but these errors were encountered: