blob: edf32a855c573be24b74f1a421079ba252c07178 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// CS0029: Cannot implicitly convert type `T[]' to `U[]'
// Line: 8
class Test
{
static void Main ()
{
Foo<int, object> (new int[] { 1 });
}
static U[] Foo<T, U> (T[] arg) where T : U where U : class
{
return arg;
}
}
|