a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
28 lines
278 B
C#
28 lines
278 B
C#
using System;
|
|
|
|
class A<D1, D2, D3>
|
|
{
|
|
public virtual void Foo<T> () where T : D2
|
|
{
|
|
}
|
|
}
|
|
|
|
class B<DD2> : A<int, DD2, short>
|
|
{
|
|
}
|
|
|
|
class C : B<string>
|
|
{
|
|
public override void Foo<T> ()
|
|
{
|
|
}
|
|
}
|
|
|
|
public class Program
|
|
{
|
|
public static void Main ()
|
|
{
|
|
new C ().Foo<string> ();
|
|
}
|
|
}
|