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
{{ message }}
Repository navigation
Missing generator's type parameter in functions and constructors #32248
Since the constructor has been given all type parameters the type of the parameter gen must be AsyncGenerator<0, 0, 1>. All type parameters are clearly decided. And the return type of yield must be unknown with the current behavior, as is defined by the context type.
Activity
rbuckton commentedon Jul 4, 2019
This is an issue with contextual typing. The contextual type from the constructor isn't flowing to the async generator.
falsandtru commentedon Jul 4, 2019
Since the constructor has been given all type parameters the type of the parameter gen must be AsyncGenerator<0, 0, 1>. All type parameters are clearly decided. And the return type of yield must be unknown with the current behavior, as is defined by the context type.
falsandtru commentedon Jul 4, 2019
Note that the type declaration for
thisdoesn't affect this bug. This is one of the verbose elements for effectivity of regression tests.falsandtru commentedon Jul 4, 2019
Same also with functions.
falsandtru commentedon Jul 16, 2019
Ron Buckton (@rbuckton) Why you still haven't fixed this bug?
falsandtru commentedon Jul 17, 2019
Thanks Ron Buckton (@rbuckton) !
falsandtru commentedon Jul 26, 2019
Ryan Cavanaugh (@RyanCavanaugh) Label this.