[netcore] Disable a flaky test on interpreter (#18904)
[mono-project.git] / mono / tests / appdomain-tester.cs
blob3521c469df2d048adfe5c526a7c468ebeecf6c87
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
5 interface IConstraint {
6 bool Eq (IConstraint b);
9 class Generic<A,B,C,D,E,F,G,H,T> where T: IConstraint
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;
21 class Impl : IConstraint {
22 public bool Eq (IConstraint b) {
23 return true;
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);