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

test-199.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ee41b58dfe85f6ccac3687bdefd1abf2e7834976 (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
42
43
public class Test
{
	public static int Main ()
	{
		N1.Foo.Foo2 foo2 = new N1.Foo.Foo2 ();
		if (foo2.Talk () != 1)
			return 1;

		return 0;
	}
}

namespace N1
{
	public class Foo : N2.Bar
	{
		public class Foo2 : Bar2
		{
		}
	}

	public class Bar2
	{
		public int Talk ()
		{
			return 1;
		}
	}
}

namespace N2
{
	public class Bar
	{
		private class Bar2
		{
			public int Talk ()
			{
				return 2;
			}
		}
	}
}