[xbuild] Don't report Imports ignored because of false conditions.
[mono.git] / mcs / tests / gtest-variance-3.cs
1 // Compiler options: -langversion:future
2
3 delegate T Foo<out T> ();
4
5 public class Test
6 {
7         static int Main ()
8         {
9                 string message = "Hello World!";
10                 Foo<string> foo = () => message;
11                 if (Bar (foo) != message.GetHashCode ())
12                         return 1;
13
14                 return 0;
15         }
16
17         static int Bar (Foo<object> foo)
18         {
19                 return foo().GetHashCode ();
20         }
21 }