8b9b85e7f5
Former-commit-id: 172c8e3c300b39d5785c7a3e8dfb08ebdbc1a99b
25 lines
220 B
C#
25 lines
220 B
C#
interface IX<TI>
|
|
{
|
|
void M<TO> () where TO : TI;
|
|
}
|
|
|
|
interface IY
|
|
{
|
|
}
|
|
|
|
class CY : IY
|
|
{
|
|
}
|
|
|
|
class A : IX<IY>
|
|
{
|
|
public void M<TO> () where TO : IY
|
|
{
|
|
}
|
|
|
|
public static void Main ()
|
|
{
|
|
var a = new A ();
|
|
a.M<CY> ();
|
|
}
|
|
} |