2004-05-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / tests / test-252.cs
1 // testcase from #58290
2
3 delegate void Foo ();
4 class A {
5         public event Foo Bar;
6
7         public static void m1 () { }
8  
9         public static void Main ()
10         {
11                 A a = new A();
12                 a.Bar += new Foo (m1);
13                 a.Bar -= new Foo (m1);
14                 System.Diagnostics.Debug.Assert (a.Bar == null);
15         }
16 }
17