Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-245197: Make method non-static don't check for conflicts with extension methods

$
0
0
Reporter Ilya Ryzhenkov (orangy) Ilya Ryzhenkov (orangy)
Created Apr 4, 2011 6:11:47 PM
Updated Apr 11, 2018 6:57:40 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Open
Type Bug
Fix version Backlog
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
namespace MvcApplication1.Controllers
{
public class User
{
private void foo(Class1 class1, Class2 class2)
{
Class1.Foo(class1, class2);
class2.Foo(class1);
}
}

public class Class1
{
public static void Foo(Class1 class1, Class2 class2) // Make this non-static in Class2, conflict should be reported
{
}
}

public class Class2
{
}

public static class Class1Extensions
{
public static void Foo(this Class2 class2, Class1 class1)
{
Class1.Foo(class1, class2);
}
}
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>