bring Mono Security to monotouch
[mcs.git] / tests / gtest-051.cs
blob5fc94f7c6e895fe9c375b0d5cfb4e1d07a116445
1 using System;
3 public class Foo<T>
4 where T : A
6 public void Test (T t)
8 Console.WriteLine (t);
9 Console.WriteLine (t.GetType ());
10 t.Hello ();
14 public class A
16 public void Hello ()
18 Console.WriteLine ("Hello World");
22 public class B : A
26 class X
28 static void Main ()
30 Foo<B> foo = new Foo<B> ();
31 foo.Test (new B ());