Reporter |
|
---|---|
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.
!image.png!
Console.WriteLine($"{name} is {age:D3} year{age == 1 ? "" : "s"} old.");
!image.png!