[build] Fix warning (#4177)
[mono-project.git] / mcs / tests / test-anon-95.cs
blob83648e5ebe7c33735c803521b0834c4dcd605343
1 using System;
3 public delegate int D ();
5 public abstract class A
7 protected abstract event D Event;
10 public class B : A
12 protected override event D Event;
14 protected int Run ()
16 return Event ();
20 public class C : B
22 int Test (int i)
24 Action a = () => base.Event += () => i;
25 a ();
26 return Run ();
29 public static int Main ()
31 if (new C ().Test (9) != 9)
32 return 1;
34 return 0;