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

RSRP-469402: Incorrect "To string.Format invocation" operation result

$
0
0
Reporter Alexander Lisovsky (alexanderliss) Alexander Lisovsky (alexanderliss)
Created Apr 25, 2018 1:07:50 PM
Updated Apr 25, 2018 1:08:35 PM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.1.1
Fixed In Version ReSharper Undefined
VsVersion VS 2015 RTM
var first = 1;
var second = 2;

var test = "test " + first + " again" + first + "another" + second;
// incorrect result - string.Format("test {0} again{1}another{0}", first, second);
// expected - string.Format("test {0} again{0}another{1}", first, second);

VS 2015, R#2018.1. Confirmed there are no issue in R#2017.2.2

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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