-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Labels
help wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Description
Version Used:
17.11.5
Steps to Reproduce:
- Start with this code:
namespace ConsoleApp44 {
internal class Program {
public static Task Test1() {
}
public static IAsyncEnumerable<int> Test2() {
}
}
}
-
Place your cursor inside
Test1and typeawait. The method changes toasync. This is good.

-
Now, place your cursor inside of
test2and typeyield. The method does NOT change to async. This is bad.

Expected Behavior:
An IAsyncEnumerable can only yield if it is async. Therefore, the same completion should trigger as when you do an await.
Actual Behavior:
Nothing happens. I have to manually update the method signature.
Peter-Juhasz, TonyValenti and Rekkonnect
Metadata
Metadata
Assignees
Labels
help wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Type
Projects
Status
InQueue