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
src/a.ts(4,10): error TS2345: Argument of type '{ <T>(cb: (x: T) => void): void; <T>(cb: (x: T[keyof T]) => void): void; }' is not assignable to parameter of type '(cb: (x: never) => void) => void'.
Types of parameters 'cb' and 'cb' are incompatible.
Types of parameters 'x' and 'x' are incompatible.
Type 'any' is not assignable to type 'never'.
Worked in typescript@2.9.0-dev.20180327, broken in typescript@2.9.0-dev.20180328.
TypeScript Version: 2.9.0-dev.20180411
Code
Expected behavior:
No error.
Actual behavior:
Worked in
typescript@2.9.0-dev.20180327, broken intypescript@2.9.0-dev.20180328.