a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
36 lines
350 B
C#
36 lines
350 B
C#
class C<T>
|
|
{
|
|
public interface IA
|
|
{
|
|
void MA (T arg);
|
|
}
|
|
|
|
public interface IB : IA
|
|
{
|
|
void MB (T arg);
|
|
}
|
|
}
|
|
|
|
class D : C<int>
|
|
{
|
|
public class Impl : IB
|
|
{
|
|
public void MA (int arg)
|
|
{
|
|
}
|
|
|
|
public void MB (int arg)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
class Test
|
|
{
|
|
public static void Main ()
|
|
{
|
|
C<int>.IB arg = new D.Impl ();
|
|
arg.MA (1);
|
|
arg.MB (1);
|
|
}
|
|
} |