Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-210.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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();
  }
}