2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / tests / gtest-220.cs
blob40c9344682ea1c50bcbe1cb72473c68b8b606428
1 public class A<T1>
3 public T1 a;
5 public class B<T2> : A<T2>
7 public T1 b;
9 public class C<T3> : B<T3>
11 public T1 c;
16 class PopQuiz
18 static int Main()
20 A<int>.B<char>.C<bool> o = new A<int>.B<char>.C<bool>();
21 string s = o.a.GetType().FullName;
22 System.Console.WriteLine(s);
23 if (s != "System.Boolean")
24 return 1;
26 s = o.b.GetType().FullName;
27 System.Console.WriteLine(s);
28 if (s != "System.Char")
29 return 2;
31 s = o.c.GetType().FullName;
32 System.Console.WriteLine();
33 if (s != "System.Int32")
34 return 3;
36 return 0;