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

RSRP-298028: Show 'Expression is always true/false' for comparison of delegates of different runtime types

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Apr 28, 2012 12:21:48 AM
Updated Apr 28, 2012 12:30:05 AM
Priority Normal
Type Feature
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
using System;

class Program
{
    static void Main()
    {
        Action<string> a = Foo;
        Action<object> b = Foo;
        if (a != b)
        {
            Console.WriteLine("a != b");
        }
    }

    static void Foo(object obj) { }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles