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

RSRP-469187: Inline conditional ref

$
0
0
Reporter Matthias Koch (Matthias.Koch) Matthias Koch (Matthias.Koch)
Created Apr 10, 2018 5:05:18 PM
Updated Apr 10, 2018 5:06:08 PM
Subsystem Refactorings - Inplace
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Improvement
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
// variable r could be inlined, but tooltip says it has write usages
ref var r = ref arr != null ? ref arr[0]: ref otherArr[0];
r = 1;

after inline could look like this
(arr != null ? ref arr[0]: ref otherArr[0]) = 1;

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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