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

RSRP-469238: Quick-Fix for "Expression is always true/false" removes inline commentary within the expression

$
0
0
Reporter Andrey Simukov (Andrey.Simukov) Andrey Simukov (Andrey.Simukov)
Created Apr 12, 2018 5:04:20 PM
Updated Apr 16, 2018 5:20:12 PM
Subsystem Quick Fixes
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Open
Type Bug
Fix version No Fix versions
Affected versions 2017.3.5, 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
            bool test = true;
        
            if (test!=false /*comment*/ && 1==1)
            {
                //...etc...
            }

Place a caret at test!=false or 1==1 or &&, choose any of the suggestions, for example
Remove expression for 1==1
Replace expression with 'true' for all the expression

The commentary is removed.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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