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

RSRP-468384: Quick fix for ?: operator in interpolated string

$
0
0
Reporter Alexandra Kuks (Asia.Rudenko) Alexandra Kuks (Asia.Rudenko)
Created Feb 15, 2018 12:55:20 PM
Updated Apr 10, 2018 6:03:53 PM
Subsystem Quick Fixes
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Critical
State Fixed In Branch
Type Feature
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
The following snippet misses parentheses around the ?: operator. At the moment ReSharper sees it as an error, but the error message isn't really helpful (see the screenshot), and there's no quickfix available.

Console.WriteLine($"{name} is {age:D3} year{age == 1 ? "" : "s"} old.");

!image.png!

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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