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

GetTypeInfo() should return the inferred delegate type for method groups #52874

Open
cston opened this issue Apr 23, 2021 · 0 comments
Open

GetTypeInfo() should return the inferred delegate type for method groups #52874

cston opened this issue Apr 23, 2021 · 0 comments

Comments

@cston
Copy link
Member

cston commented Apr 23, 2021

GetTypeInfo() should return the inferred delegate type for method groups - for the initializer of d1 for instance.

What should GetTypeInfo() return for the initializer of d2 since we don't need to infer a delegate type for that expression?

using System;

delegate void D();

class Program
{
    static void Main()
    {
        Delegate d1 = Main; // System.Action
        D d2 = Main;        // D?
    }
}

Relates to "lambda improvements" feature (test plan)

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 23, 2021
@cston cston self-assigned this Apr 23, 2021
@jcouv jcouv removed the untriaged Issues and PRs which have not yet been triaged by a lead label Apr 23, 2021
@jcouv jcouv added this to the C# 10 milestone Apr 23, 2021
@jaredpar jaredpar modified the milestones: C# 10, 17.0 Jul 13, 2021
@jaredpar jaredpar modified the milestones: 17.0, 17.1 Sep 22, 2021
@cston cston modified the milestones: 17.1, 17.2 Feb 17, 2022
@jcouv jcouv modified the milestones: 17.2, 17.3 May 14, 2022
@jaredpar jaredpar modified the milestones: 17.3, C# 12.0 Jul 1, 2022
@jaredpar jaredpar modified the milestones: C# 12.0, Backlog Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants