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

test-290.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 905fc6a706f6b9c0c98b34a36f9226b424f65c05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Distilled from report in http://lists.ximian.com/archives/public/mono-devel-list/2004-September/007777.html

using System;

class EntryPoint {
	delegate void EventHandler (object sender);
	static event EventHandler FooEvent;
	static void bar_f (object sender) {}
	static void Main () {
		if (FooEvent != null)
			FooEvent (null);
		object bar = new EventHandler (bar_f);
	}
}