Merge pull request #5382 from kumpera/pedump_fix
[mono.git] / mono / tests / appdomain-tester.cs
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
4
5 interface IConstraint {
6         bool Eq (IConstraint b);
7 }
8
9 class Generic<A,B,C,D,E,F,G,H,T> where T: IConstraint
10 {
11         public bool Eq (T a, T b) {
12                 var x = new List<T> ();
13                 x.Add (a);
14                 x.Add (b);
15                 Array.BinarySearch (x.ToArray (), b);
16                 a.Eq (b);
17                 return true;
18         }
19 }
20
21 class Impl : IConstraint {
22         public bool Eq (IConstraint b)  {
23                 return true;
24         }
25 }
26
27 public class Unload2 {
28         static void Main (string[] args) {
29                 var a = new Impl ();
30                 var b = new Generic<object, object, object, object, object, object, object, object, Impl> ();
31                 b.Eq (a, a);
32         }
33 }