do not check order sequence if option /order was not used
[mono.git] / mcs / tests / gtest-variance-4.cs
1 delegate int Foo<in T> (T t);
2
3 public class Test
4 {
5         static int Main ()
6         {
7                 string message = "Hello World!";
8                 Foo<object> foo = (o) => o.GetHashCode ();
9                 if (Bar (foo, message) != message.GetHashCode ())
10                         return 1;
11
12                 return 0;
13         }
14
15         static int Bar (Foo<string> foo, string s)
16         {
17                 return foo(s);
18         }
19 }