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

RSRP-272541: Replace with method group quick-fix removes type parameters

$
0
0
Reporter Andrew Serebryansky (andrew.serebryansky) Andrew Serebryansky (andrew.serebryansky)
Created Jun 16, 2011 5:11:24 PM
Updated Mar 27, 2012 5:03:10 PM
Priority Critical
Type Bug
Fix versions 7.0
State Open
Assignee Alexey Kuptsov (alexey.kuptsov)
Subsystem No subsystem
Affected versions 6.0 EAP
Fixed in build No Fixed in build
 public class Class1
  {
    public void Test<T, TP>(List<Expression<Func<T, TP>>> target)
    {
      var targets = target.Select(x=>this.GetPropertySymbol(x));
    }

    public string GetPropertySymbol<T, TP>(Expression<Func<T, TP>>  property)
    {
      throw new NotImplementedException();
    }
  }

results in
public class Class1
  {
    public void Test<T, TP>(List<Expression<Func<T, TP>>> target)
    {
      var targets = target.Select(GetPropertySymbol<,>);
    }

    public string GetPropertySymbol<T, TP>(Expression<Func<T, TP>>  property)
    {
      throw new NotImplementedException();
    }
  }

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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