9 class A
<T
> where T
: IA
15 public virtual void Foo
<T
> (A
<T
> t
) where T
: IA
22 public override void Foo
<T
> (A
<T
> t
)
26 public static int Main ()
30 var m
= typeof (D
).GetMethod ("Foo");
31 var ga
= m
.GetGenericArguments() [0];
33 var tpConstraints
= ga
.GetGenericParameterConstraints();
34 if (tpConstraints
.Length
!= 1)
37 if (tpConstraints
[0] != typeof (IA
))