[runtime] Avoid holding the init lock while calling the cctor in mono_runtime_class_i...
[mono-project.git] / mcs / tests / test-720.cs
blob44eed79f2bb06c482116f9c3ee967e3da0cb1c78
1 // Compiler options: -warn:4 -warnaserror
3 using System;
5 namespace N
7 class Program
9 public static void Main ()
11 Parent pr = new Child();
12 ((Child)pr).OnExample();
16 public abstract class Parent
18 public delegate void ExampleHandler();
19 public abstract event ExampleHandler Example;
22 public class Child : Parent
24 public override event ExampleHandler Example;
25 public void OnExample()
27 if (Example != null) Example();