Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-variance-3.cs
1 delegate T Foo<out T> ();
2
3 public class Test
4 {
5         public static int Main ()
6         {
7                 string message = "Hello World!";
8                 Foo<string> foo = () => message;
9                 if (Bar (foo) != message.GetHashCode ())
10                         return 1;
11
12                 return 0;
13         }
14
15         static int Bar (Foo<object> foo)
16         {
17                 return foo().GetHashCode ();
18         }
19 }