19 lines
159 B
C#
19 lines
159 B
C#
|
class G<T>
|
||
|
{
|
||
|
}
|
||
|
|
||
|
interface I
|
||
|
{
|
||
|
void Foo<T> () where T : G<T>;
|
||
|
}
|
||
|
|
||
|
class A : I
|
||
|
{
|
||
|
public void Foo<U> () where U : G<U>
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public static void Main ()
|
||
|
{
|
||
|
}
|
||
|
}
|