Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-502.cs
1 using System;
2 using TestAlias = A.N<double>;
3
4 class C<T>
5 {
6         public class Foo<U>
7         {
8         }
9
10         public class Simple
11         {
12         }
13
14         static Type foo = typeof (Foo<>);
15         static Type simple = typeof (Simple);
16 }
17
18 class D<U> : C<U>
19 {
20 }
21
22 class A
23 {
24         public class N<T>
25         {
26         }
27 }
28
29 class M
30 {
31         public static int Main ()
32         {
33                 new C<int> ();
34                 
35                 if (typeof (TestAlias).ToString () != "A+N`1[System.Double]")
36                         return 1;
37
38                 if (typeof (D<>.Simple).ToString () != "C`1+Simple[T]")
39                         return 2;
40                 
41                 return 0;
42         }
43 }
44