summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-187.cs
blob: 607b171ce5980266db3920f1312bbb83bc42a667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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();
  }
}