summaryrefslogtreecommitdiff
path: root/mcs/tests/test-async-53.cs
blob: 3ffee8c4d501b505fe96692d637c56a49dba270e (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
using System;

class Y
{
}

class X
{
	public event Action<int, string> E;

	void Foo ()
	{
		var nc = new Y ();

		E += async (arg1, arg2) => {
			nc = null;
		};

		E (1, "h");
	}

	public static void Main ()
	{
		var x = new X ();
		x.Foo ();
	}
}