[System.Data] Try to fix random DataViewTest.DefaultColumnNameAddListChangedTest...
[mono-project.git] / mcs / tests / gtest-variance-2.cs
blob64d701fef6351f067a6300cfbc774967d15155f0
1 interface IFoo<in T>
3 string Bar (T t);
6 class Foo : IFoo<object>
8 public string Bar (object t)
10 return t.GetType ().FullName;
14 public class Test
16 public static int Main ()
18 IFoo<object> foo = new Foo ();
19 IFoo<string> foo2 = foo;
21 if (foo2.Bar ("blah") != typeof (string).FullName)
22 return 1;
24 foo2 = new Foo();
25 if (foo2.Bar ("blah") != typeof (string).FullName)
26 return 2;
29 return 0;