Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-252.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a25a64313f0e23d5b6914118ec0138b6ed54c5ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// testcase from #58290

delegate void Foo ();
class A {
	public event Foo Bar;

	public static void m1 () { }
 
	public static int Main ()
	{
		A a = new A();
		a.Bar += new Foo (m1);
		a.Bar -= new Foo (m1);
		return (a.Bar == null) ? 0 : 1;
	}
}