Skip to content
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

FindAllReferences doesn't find usages of GetAsyncEnumerator in await foreach #45352

Closed
YairHalberstadt opened this issue Jun 22, 2020 · 1 comment
Labels
Area-IDE Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it IDE-Navigation Navigation and search
Milestone

Comments

@YairHalberstadt
Copy link
Contributor

Version Used: 16.7 preview 2

Steps to Reproduce:

find all references of GetAsyncENumerator in the below code:

using System;
using System.Collections.Generic;
using System.Threading.Tasks;

public class C
{
    public static async Task Main()
    {
        await foreach (var i in new C())
        {
            Console.Write(i);
        }
    }

    public async IAsyncEnumerator<int> GetAsyncEnumerator() => null;
}

Expected Behavior:
Returns 1 usage in await foreach (this happens for GetEnumerator and foreach)

Actual Behavior:
Finds no usages.

@jinujoseph jinujoseph added Bug IDE-Navigation Navigation and search labels Jun 23, 2020
@jinujoseph jinujoseph added this to the 16.8 milestone Jun 23, 2020
@CyrusNajmabadi CyrusNajmabadi removed their assignment Sep 6, 2020
@CyrusNajmabadi CyrusNajmabadi added the help wanted The issue is "up for grabs" - add a comment if you are interested in working on it label Sep 6, 2020
@jinujoseph jinujoseph modified the milestones: 16.8, Backlog Sep 10, 2020
@CyrusNajmabadi
Copy link
Member

Closing due to lack of feedback.

@CyrusNajmabadi CyrusNajmabadi closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2024
@dotnet dotnet locked and limited conversation to collaborators Oct 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area-IDE Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it IDE-Navigation Navigation and search
Projects
None yet
Development

No branches or pull requests

4 participants