summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-314.cs
blob: f16def344da6f25124353ed3ecd41e32399f5687 (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
25
26
27
28
using System;

namespace test
{

  public class App
  {
    public static void Main() {
    
    }
  }

  public class ThisClass<T, O>
    where T: ThisClass<T, O>
    where O: OtherClass<O, T>
  {
    internal int dummy;
  }

  public class OtherClass<O, T>
    where O: OtherClass<O, T> 
    where T: ThisClass<T, O>
  {
    public void Test(T tc) {
      tc.dummy = 0;
    }
  }
}