Reporter | 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.
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.