summaryrefslogtreecommitdiff
path: root/mcs/tests/test-781.cs
blob: b461dc28da9e147913e5f81a4483d8d7192f8c34 (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
28
using System;

delegate void D ();

class E
{
	public event D temp;
}

class A
{
	E Prop	{
		get {
			return new E ();
		}
	}

	void Test ()
	{
		Prop.temp += delegate () { };
	}

	public static void Main ()
	{
		var a = new A ();
		a.Test ();
	}
}