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

test-884.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50519a790eea25b6abba0caf73c1717c2c97ad29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Compiler options: -optimize

using System;

class C
{
	static void Main ()
	{
		AddEH<string> ();
	}

	static void AddEH<T>()
	{
		var e = new E<T> ();
		e.EEvent += EHandler;
	}

	static void EHandler ()
	{
	}

	class E<T>
	{
		public delegate void EMethod ();
		public event EMethod EEvent;
	}
}