fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main() {}
  6. }
  7.  
  8. public interface ITree<TSelf, TItem> where TSelf : ITree<TSelf, TItem>
  9. {
  10. TSelf Union(TSelf other);
  11. }
  12.  
  13. public class AvlTree<TItem> : ITree<AvlTree<TItem>, TItem> {
  14. public AvlTree<TItem> Union(AvlTree<TItem> other) {
  15. return other;
  16. }
  17. }
Success #stdin #stdout 0.01s 33528KB
stdin
Standard input is empty
stdout
Standard output is empty