a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
29 lines
354 B
C#
29 lines
354 B
C#
using System;
|
|
|
|
public class Class1<T>
|
|
where T : MyType
|
|
{
|
|
public void MethodOfClass1 (T a, MyType b)
|
|
{
|
|
a.MethodOfMyBaseType ();
|
|
}
|
|
}
|
|
|
|
public class MyType : MyBaseType
|
|
{
|
|
public override void MethodOfMyBaseType ()
|
|
{
|
|
}
|
|
}
|
|
|
|
public abstract class MyBaseType
|
|
{
|
|
public abstract void MethodOfMyBaseType ();
|
|
}
|
|
|
|
class X
|
|
{
|
|
public static void Main ()
|
|
{ }
|
|
}
|