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

RSRP-294618: False warning: The given expression is never of the provided type (array of generic enum)

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Apr 15, 2012 5:35:24 AM
Updated Apr 15, 2012 5:35:24 AM
Priority Normal
Type Bug
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 B<T>
{
    public enum E { }

    public static void Foo()
    {
        int[] a = {};
        Console.WriteLine(a is E[]); // True
    }
}

class Program
{
    static void Main()
    {
        B<object>.Foo();
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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