Reporter | Kevin Watkins (MrKWatkins) |
---|---|
Created | Jan 10, 2012 9:34:59 PM |
Updated | Jan 10, 2012 9:34:59 PM |
Priority | Normal |
Type | Feature |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | Language - C# |
Affected versions | 6.1 |
Fixed in build | No Fixed in build |
C#, .NET 3.5, Visual Studio 2008. The following code:
Is not highlighted by ReSharper, however the compiler reports the warning "Assignment made to same variable; did you mean to assign something else?". It would be nice if ReSharper highlighted this on the fly.
public sealed class Test { private readonly string field; public Test(string field) { this.field = this.field; } }
Is not highlighted by ReSharper, however the compiler reports the warning "Assignment made to same variable; did you mean to assign something else?". It would be nice if ReSharper highlighted this on the fly.