[xbuild] Vbc task - make error column check a little non-specific.
[mono.git] / mcs / tests / gtest-variance-4.cs
1 // Compiler options: -langversion:future
2
3 delegate int Foo<in T> (T t);
4
5 public class Test
6 {
7         static int Main ()
8         {
9                 string message = "Hello World!";
10                 Foo<object> foo = (o) => o.GetHashCode ();
11                 if (Bar (foo, message) != message.GetHashCode ())
12                         return 1;
13
14                 return 0;
15         }
16
17         static int Bar (Foo<string> foo, string s)
18         {
19                 return foo(s);
20         }
21 }