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

RSRP-468676: CA 'Initialize field with parameter value' shouldn't be available if parameter's type isn't convertible to field's type

$
0
0
Reporter Andrey Dyatlov (Andrey.Dyatlov) Andrey Dyatlov (Andrey.Dyatlov)
Created Mar 14, 2018 3:22:33 PM
Updated Apr 23, 2018 1:52:28 PM
Resolved Apr 23, 2018 1:52:28 PM
Subsystem Context Actions
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Normal
State Fixed
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
class C
{
private readonly Uri myBaseUrl;

public C(string baseUrl) // <-- here
{
myBaseUrl = new Uri(baseUrl);
}
}

Also it probably shouldn't be offered if the field is already initialized with another value

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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