[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / gtest-variance-7.cs
blobf30db2433ef09d6ebe71cda2ef1dff202ac23b28
1 delegate T Covariant<out T> ();
2 delegate void Contra<in T> (T t);
3 delegate TR CoContra<out TR, in T> (T t);
4 delegate void None<T> (T t);
6 delegate Covariant<Contra<Contra<Covariant<Covariant<Covariant<Covariant<Covariant<U>>>>>>>> Test<out U> ();
7 delegate Contra<Covariant<Contra<Contra<Covariant<Covariant<Covariant<Covariant<Covariant<U>>>>>>>>> Test2<in U> ();
8 delegate Contra<Contra<Covariant<Covariant<Covariant<Covariant<Contra<Contra<U>>>>>>>> Test3<out U> ();
9 delegate Contra<Contra<Covariant<Covariant<Contra<Contra<Contra<Contra<U>>>>>>>> Test4<out U> ();
10 delegate Contra<Contra<Covariant<Covariant<Contra<Contra<Contra<U>>>>>>> Test5<in U> ();
11 delegate void Test6<in U> (Covariant<Contra<Contra<Covariant<Covariant<Covariant<Covariant<Covariant<U>>>>>>>> t);
13 delegate void Both<in U, out V> (CoContra<U, V> p);
14 delegate void Both2<in U, out V> (CoContra<U, Contra<U>> p);
15 delegate void Both3<in U, out V> (CoContra<U, Contra<int>> p);
16 delegate void Both4<in U, out V> (Both<V, U> b);
17 delegate void Both5<in U, out V> (Both<V, int> b);
19 class C
21 public static void Main ()