summaryrefslogtreecommitdiff
path: root/mcs/tests/test-anon-152.cs
blob: 733e64a5d41fa3b9859241f76cede3dfe8c78956 (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;
using System.Collections.Generic;

public class A<T>
{
	public class B
	{
		private List<Action<T[]>> l = new List<Action<T[]>>();

		protected void W<R>(string s, Func<T, R> f)
		{
			Action<T[]> w = delegate(T[] d)
			{
				R[] r = new R[d.Length];
				for (int i = 0; i < d.Length; i++)
					r[i] = f(d[i]);
			};
			l.Add(w);
		}
	}
}

public class B
{
	public static void Main ()
	{
	}
}