[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / gtest-023.cs
blob35ca063f6590acc76207fff484a550e795b10aea
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 public static void Main ()
34 { }