a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
20 lines
210 B
C#
20 lines
210 B
C#
interface I<T>
|
|
{
|
|
}
|
|
|
|
class Foo<T1, T2> where T2 : I<I<T1>>
|
|
{
|
|
public Foo (T2 t2)
|
|
{
|
|
}
|
|
}
|
|
|
|
class Bar : I<I<string>>
|
|
{
|
|
public static int Main ()
|
|
{
|
|
var foo = new Foo<string, Bar> (new Bar ());
|
|
return 0;
|
|
}
|
|
}
|