-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Error with async generators #32247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It doesn't seem to like the definitions of |
Yes, the actual type is not assignable to the declared type although they are the same type. |
@rbuckton Please don't forget this too. |
@ahejlsberg for reference |
This appears to be unaffected by #32460. Best I can tell the issue is that |
A simpler repro: interface Foo<T> {
test(value: T): void;
}
interface Bar<T> {
test(value: T | PromiseLike<T>): void;
}
declare let f1: <T>(x: Foo<T> | Bar<T>) => Promise<T>;
declare let f2: <U>(x: Foo<U> | Bar<U>) => Promise<U>;
f1 = f2; // Error
f2 = f1; // Error |
@rbuckton
TypeScript Version: master
Search Terms:
Code
Expected behavior:
pass
Actual behavior:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: