Jo Shields fe777c5c82 Imported Upstream version 3.8.0
Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
2014-09-04 09:07:35 +01:00

45 lines
483 B
C#

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);
}
class D<U> : C<U>
{
}
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;
if (typeof (D<>.Simple).ToString () != "C`1+Simple[T]")
return 2;
return 0;
}
}