2014-08-13 10:39:27 +01:00
|
|
|
using System;
|
|
|
|
using TestAlias = A.N<double>;
|
|
|
|
|
|
|
|
class C<T>
|
|
|
|
{
|
|
|
|
public class Foo<U>
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public class Simple
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static Type foo = typeof (Foo<>);
|
|
|
|
static Type simple = typeof (Simple);
|
|
|
|
}
|
|
|
|
|
2014-09-04 09:07:35 +01:00
|
|
|
class D<U> : C<U>
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-08-13 10:39:27 +01:00
|
|
|
class A
|
|
|
|
{
|
|
|
|
public class N<T>
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class M
|
|
|
|
{
|
|
|
|
public static int Main ()
|
|
|
|
{
|
|
|
|
new C<int> ();
|
|
|
|
|
|
|
|
if (typeof (TestAlias).ToString () != "A+N`1[System.Double]")
|
|
|
|
return 1;
|
2014-09-04 09:07:35 +01:00
|
|
|
|
|
|
|
if (typeof (D<>.Simple).ToString () != "C`1+Simple[T]")
|
|
|
|
return 2;
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|