-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Allow more return types for async generators #787
Comments
Can I try to fix it? |
Of course, thank you! |
@blacktoast Are you still willing to work on this? |
I've been working on it, but I've had a few things happen lately that have prevented me from progressing. |
Hi, I am struggling to run this specific test case. I have tried using Please help! >< |
can you excute I'll check it out when I get home |
It works! But it runs all the other 5000 test cases which takes a long time. Is there a way to only run this specific test case? Output:
Sure, no problem! No rush haha |
There is one way to do it Copy the code and add it to the test case of |
Test case
stc/crates/stc_ts_type_checker/tests/conformance/types/asyncGenerators/types.asyncGenerators.es2018.1.ts
Lines 118 to 120 in 19aab18
We should modify the logic to avoid assigning to the declared return type if a yield expression is in an async generator.
We can do it by checking if it's async iterable before assigning it from
stc/crates/stc_ts_file_analyzer/src/analyzer/stmt/return_type.rs
Lines 498 to 511 in 19aab18
The text was updated successfully, but these errors were encountered: