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
error TS2345: Argument of type 'typeof MySubClass' is not assignable to parameter of type 'typeof MyClass'.
Type 'MySubClass' is not assignable to type 'MyClass<T>'.
Types of property 'doIt' are incompatible.
Type '(data: Readonly<II2>) => void' is not assignable to type '(data: Readonly<T>) => void'.
Types of parameters 'data' and 'data' are incompatible.
Type 'Readonly<T>' is not assignable to type 'Readonly<II2>'.
Property 'foo' is missing in type 'Readonly<T>'.
This feels like #16985 in a slightly different form.
/cc @ahejlsberg
TypeScript Version: 2.5.1, but probably broken since 2.4.1
Code
Expected behavior:
No compilation error.
Actual behavior: