Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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();
}
}