a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
25 lines
248 B
C#
25 lines
248 B
C#
public class Foo<T> where T:Foo<T>
|
|
{
|
|
public T n;
|
|
|
|
public T next()
|
|
{
|
|
return n;
|
|
}
|
|
}
|
|
|
|
public class Goo : Foo<Goo>
|
|
{
|
|
public int x;
|
|
}
|
|
|
|
public class Test
|
|
{
|
|
public static void Main()
|
|
{
|
|
Goo x = new Goo();
|
|
|
|
x=x.next();
|
|
}
|
|
}
|