a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
16 lines
306 B
C#
16 lines
306 B
C#
public interface IFoo { }
|
|
public interface IFoo<T> : IFoo { }
|
|
|
|
public class Test
|
|
{
|
|
public IFoo GetFoo () { return GetFooGeneric<object> (); }
|
|
|
|
public IFoo<T> GetFooGeneric<T> () { return default (IFoo<T>); }
|
|
|
|
public static void Main ()
|
|
{
|
|
Test test = new Test ();
|
|
test.GetFoo ();
|
|
}
|
|
}
|