[build] Fix warning (#4177)
[mono-project.git] / mcs / tests / gtest-variance-4.cs
blobb0c4cebdfd97a42514bbb9c84b78abf87872d749
1 delegate int Foo<in T> (T t);
3 public class Test
5 public static int Main ()
7 string message = "Hello World!";
8 Foo<object> foo = (o) => o.GetHashCode ();
9 if (Bar (foo, message) != message.GetHashCode ())
10 return 1;
12 return 0;
15 static int Bar (Foo<string> foo, string s)
17 return foo(s);