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

RSRP-287119: error CS0030: Cannot convert type 'System.Collections.Generic.IList' to 'U[]'

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Dec 20, 2011 4:02:16 AM
Updated Dec 20, 2011 4:02:16 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.Collections.Generic;

class Program
{
    static void Foo<T, U>(IList<T> x)
        where T : U
        where U : class
    {
        U[] y = (U[])x; // error CS0030: Cannot convert type 'System.Collections.Generic.IList<T>' to 'U[]'
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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