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

RSRP-336667: Quick fix suggests changing local variable type to void

$
0
0
Reporter Andrew (impworks) Andrew (impworks)
Created Dec 18, 2012 1:53:59 PM
Updated Apr 26, 2018 12:10:16 PM
Resolved Apr 26, 2018 12:10:16 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Bug
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
The following snippet of code illustrates the issue:

void Test()
{
var a = 1;
return a;
}

When selecting the "a" in the return statement and pressing Alt+Enter, is suggests to change the variable type to 'void', thus rendering the code uncompilable.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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