15 lines
160 B
C#
15 lines
160 B
C#
|
// CS0029: Cannot implicitly convert type `T[]' to `I[]'
|
||
|
// Line: 12
|
||
|
|
||
|
interface I
|
||
|
{
|
||
|
}
|
||
|
|
||
|
class C
|
||
|
{
|
||
|
static void Foo<T> (T [] t) where T : I
|
||
|
{
|
||
|
I [] i = t;
|
||
|
}
|
||
|
}
|