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

RSRP-288204: Applying R# suggestion leads compilation error

$
0
0
Reporter Edward Pavlov (edward.pavlov) Edward Pavlov (edward.pavlov)
Created Feb 8, 2012 3:02:57 PM
Updated Feb 8, 2012 3:02:57 PM
Priority Critical
Type Unspecified
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
class Foo
{
public Foo(Action action = null) : this(action, null)
{}

public Foo(Action action, string id = null)
{}
}
}

R# suggests remove "null" from ": this(action, null)" as it is redundant.
Of course after applying this suggestion we got "error CS0516: Constructor 'CaseReproducing.Foo.Foo(System.Action)' cannot call itself" compilation error

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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