a.ts:
declare class P<R> {
constructor(callback: (resolve: (value: R) => void) => void);
}
b.ts:
interface P<R> {}
new P<string>(resolve => {
resolve('foo'); // "Argument of type 'string' is not assignable to parameter of type 'R'."
});
According to git bisect, this was introduced in #7448
a.ts:
b.ts:
According to git bisect, this was introduced in #7448