Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-277.cs
1 using System;
2 using System.Collections.Generic;
3
4 public interface INode<K> : IComparable<K> where K : IComparable<K>
5 {
6         K Key {
7                 get;
8         }
9 }
10
11 public interface IBTNode<C> where C : IBTNode<C> 
12 {
13         C Parent {
14                 get;
15                 set;
16         }
17
18         C Left {
19                 get;
20                 set;
21         }
22
23         C Right {
24                 get;
25                 set;
26         }
27 }
28
29 public interface IBSTNode<K, C> : IBTNode<C>, INode<K> 
30         where C : IBSTNode<K, C> where K : IComparable<K>
31 {
32 }
33
34 public interface IAVLNode<K, C> : IBSTNode<K, C> 
35         where C : IAVLNode<K, C> where K : IComparable<K>
36 {
37         int Balance {
38                 get;
39                 set;
40         }
41 }
42
43 class X
44 {
45         public static void Main ()
46         { }
47 }