History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-48417
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Dmitry Lomov
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
ReSharper

Problem in extension method resolve: Delegates and extension methods

Created: 31 Aug 07 16:58   Updated: 09 Jun 08 22:24
Component/s: Code Analysis
Fix Version/s: 4.0.1
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 519


 Description  « Hide
public struct A
{
    static void Main()
    {
        F f = new A().Foo; // error CS1113: Extension methods 'B.Foo(A, int)' defined on Value type 'A' cannot be used to create delegates
    }

}

public static class B
{
    public static void Foo(this A x, int y) { }
}

delegate void F(int y);


 All   Comments   Work Log   Change History      Sort Order:
Eugene Pasynkov - 22 Oct 07 16:13
See CSharpHighlightingTest.MethodGroup04