2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-variance-3.cs
blob29addd9ea6bb894c7a38bfc8f93a9c1c86e6e84e
1 // Compiler options: -langversion:future
3 delegate T Foo<out T> ();
5 public class Test
7 static int Main ()
9 string message = "Hello World!";
10 Foo<string> foo = () => message;
11 if (Bar (foo) != message.GetHashCode ())
12 return 1;
14 return 0;
17 static int Bar (Foo<object> foo)
19 return foo().GetHashCode ();