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

gtest-225.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dee948265b2dc47182d4386fc8ffede2d86c5c67 (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
29
public class Set<Element>
{
	protected readonly Node[] sub;
	public Set () { }

	public struct Locator
	{
		public delegate void Replace (Node node);
		public Locator (Replace put) { }
	}

	public class Node : Set<Element>
	{ }

	protected Locator locate (Element x)
	{
		Set<Element> parent = this;
		return new Locator (new Locator.Replace (delegate (Node n) {
			parent.sub[0] = n;
		}));
	}
}

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