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

No conversion from old-style anonymous method to expression tree #2659

Closed
gafter opened this issue May 11, 2015 · 1 comment
Closed

No conversion from old-style anonymous method to expression tree #2659

gafter opened this issue May 11, 2015 · 1 comment

Comments

@gafter
Copy link
Member

gafter commented May 11, 2015

I found this in the Roslyn test sources:

            // The spec has an omission; I believe we intended it to say that there is no
            // conversion from any old-style anonymous method expression to any expression tree
            // type. This is the rule the native compiler enforces; Roslyn should as well, and 
            // we should clarify the specification.

with this test case

using System;
using System.Linq.Expressions;
class Program
{
    static void Main()
    {
        Foo(delegate { }); // No error; chooses the non-expression version.
    }
    static void Foo(Action a) { }
    static void Foo(Expression<Action> a) { }
}
@gafter gafter added this to the 1.0 (stable) milestone May 11, 2015
@srivatsn srivatsn modified the milestones: 1.1, 1.0 (stable) Jun 16, 2015
@Pilchie Pilchie modified the milestones: 1.1, 1.2 Nov 16, 2015
@gafter gafter removed this from the 1.2 milestone Nov 20, 2015
@gafter
Copy link
Member Author

gafter commented Mar 20, 2017

We are now taking language feature discussion on https://github.com/dotnet/csharplang for C# specific issues, https://github.com/dotnet/vblang for VB-specific features, and https://github.com/dotnet/csharplang for features that affect both languages.

See also #18002 for a general discussion of closing and/or moving language issues out of this repo.

@gafter gafter closed this as completed Mar 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants