update readme (#21797)
[mono-project.git] / mcs / tests / gtest-509.cs
blob68aafa0315160eef0d3e79f103062c8f223f0c8a
1 using System;
3 namespace Test
5 public interface IFoo
9 public class Foo : IFoo
13 public interface IBase
15 T Get<T> (object o);
18 public class TestClass : IBase
20 public T Get<T> (object o)
21 where T : IFoo
23 return default (T);
26 T IBase.Get<T> (object o)
28 return default (T);
31 public static void Main (string[] args)
33 Console.WriteLine (new TestClass ().Get<Foo> (null));