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

Ref returns/locals: Event Hookup on Tab does not appear on refs to events #8446

Closed
dpoeschl opened this issue Feb 6, 2016 · 2 comments
Closed
Labels
Area-IDE Bug Feature - Ref Locals and Returns Ref Locals and Returns help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone

Comments

@dpoeschl
Copy link
Contributor

dpoeschl commented Feb 6, 2016

Try event hookup on x & e in this code:

using System;

class C
{
    event EventHandler e;

    void M()
    {
        ref var x = ref e; // "e += " on the next line causes Event Hookup, but "x += " does not.

    }
}

Expected: The event hookup quick info should appear and tab should create the handler method for both x and e
Actual: It only works on e

@DustinCampbell DustinCampbell added this to the Unknown milestone Feb 9, 2016
@DustinCampbell DustinCampbell added the help wanted The issue is "up for grabs" - add a comment if you are interested in working on it label Feb 9, 2016
@DustinCampbell
Copy link
Member

@Pilchie and I don't think this will be a common scenario, but good catch!

@CyrusNajmabadi
Copy link
Member

Closing out as an uncommon scenario that we haven't heard about from any customers.

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

No branches or pull requests

3 participants