Fix LinearGradientMode parameter validation to match corefx (#5672)
[mono.git] / mcs / tests / gtest-variance-7.cs
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);
5
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);
12
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);
18
19 class C
20 {
21         public static void Main ()
22         {
23         }
24 }