bring Mono Security to monotouch
[mcs.git] / tests / gtest-023.cs
blobc4c8b6a03ebc693688bf6fbf51a0aae758098b73
1 class Foo<T>
3 public void Hello ()
4 { }
6 public void World (T t)
8 Hello ();
13 // This is some kind of a `recursive' declaration:
15 // Note that we're using the class we're currently defining (Bar)
16 // as argument of its parent.
18 // Is is important to run the resulting executable since this is
19 // both a test for the compiler and the runtime.
22 class Bar : Foo<Bar>
24 public void Test ()
26 Hello ();
27 World (this);
31 class X
33 static void Main ()
34 { }