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

test-anon-87.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 517d78de75efe4f2dd6f0b8db8e20733751b4195 (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
30
31
32
33
34
35
36
37
38
39
40
41
using System;

namespace Bug
{
	public delegate void D ();
	
	class AA : BB
	{
		public AA (BB bb)
			: base (bb.Value)
		{
			D d = delegate () {
				bb.Foo ();
				TestMe ();
			};
		}
		
		void TestMe ()
		{
		}
		
		public static int Main ()
		{
			new AA (new BB ("a"));
			return 0;
		}
	}
	
	class BB
	{
		public string Value = "test";
		
		public BB (string s)
		{
		}
		
		public void Foo ()
		{
		}
	}
}