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

RSRP-288392: 'Redundant cast to object' is not detected

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Feb 19, 2012 1:46:53 AM
Updated Apr 4, 2012 11:31:24 PM
Resolved Apr 4, 2012 7:02:17 PM
Priority Normal
Type Bug
Fix versions 7.0
State Fixed
Assignee Evgeny Pasynkov (pasynkov)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build 7.0.10.157
using System;

class Program
{
    static void Foo(int? x)
    {
        if ((object)x == null) // 'Redundant cast' is not detected
        {
            Console.WriteLine();
        }
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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