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

test-anon-65.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b748c4450635ef9ccd9ed9e5d0190103fd3431f6 (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;

public class BaseClass
{
	public delegate void SomeDelegate ();
	public BaseClass (SomeDelegate d)
	{
		d ();
	}
}

public class TestClass : BaseClass
{
	public readonly int Result;
	public TestClass (int result)
		: base (delegate ()
	{
		Console.WriteLine (result);
	})
	{
	}

	public static int Main (string[] args)
	{
		TestClass c = new TestClass (1);
		return 0;
	}
}