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

RSRP-287679: Report 'Assignment Made To Same Variable' Compiler Warning

$
0
0
Reporter Kevin Watkins (MrKWatkins) 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:

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.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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