Reporter | 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[]' } }