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

RSRP-466847: Unnecessary escape generated by "Convert concatenation to interpolation" action

$
0
0
Reporter Baste Nesse Buanes (baste) Baste Nesse Buanes (baste)
Created Oct 23, 2017 8:12:58 PM
Updated Apr 11, 2018 5:24:32 PM
Subsystem Quick Fixes
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Normal
State Fixed In Branch
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
When using the "Convert concatenation to interpolation" action, Rider converts all instances of the symbol ' into \', even though that's not necessary.

So this:

var data = "I've got 13 " + foo + "'s, isn't that great? By the way, '";

Is turned into:

var data = $"I\'ve got 13 {foo}\'s, isn\'t that great? By the way, \'\'\'\'";

when it should be:

var data = $"I've got 13 {foo}'s, isn't that great? By the way, '
";

RD-172.4144.1459

RD-172.4144.1459, JRE 1.8.0_152-release-915-b11x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1920x1080, 1920x1080 Europe/Paris

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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