Reporter | 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
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