dotnet/roslyn
Inline temporary variable with multiple assignments
Aberta
#34.753 aberto em 4 de abr. de 2019
Area-IDEBugIDE-CodeStylehelp wanted
Métricas do repositório
- Stars
- (20.414 estrelas)
- Métricas de merge de PR
- (Mesclagem média 6d 17h) (256 fundiu PRs em 30d)
Description
Version Used: Visual Studio 2019 version 16.0
Steps to Reproduce:
var x = 3;
x = x + 2;
Console.WriteLine(x);
Apply Inline temporary variable on the definition of x.
Expected Behavior:
var x = 3 + 2;
Console.WriteLine(x);
Actual Behavior:
var x = 3;
x = 3 + 2;
Console.WriteLine(3);