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

test-198.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0f038d36ec590247b6ee20d34c37f93b400c14a9 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
namespace N1.N3.N4
{
	public class Bar
	{
	}
}

namespace N1.N2
{
	using N3.N4;

	public class Foo : Bar
	{
	}
}

namespace N5.N6
{
	using N7.N8;

	public class Foo : Bar
	{
	}
}

namespace N5.N7.N8
{
	public class Bar
	{
	}
}

namespace FirstOuter
{
	namespace FirstInner
	{
		public class First
		{
			public string MyIdentity { 
				get {
					return this.GetType().FullName;
				}		
			}
		}
	}
	
	public class Second : FirstInner.First {}
	
	namespace SecondInner
	{
		public class Third : FirstOuter.FirstInner.First {}
	}
	
	namespace FirstInner // purposefully again
	{
		public class Fourth : First {} // must understand First in the nom qualified form
	}
}

public class Fifth : FirstOuter.FirstInner.First {}

namespace M1
{
	using X = P1;
	namespace M2
	{
		using Y = X.P2;
		namespace M3
		{
			public class Foo : Y.Bar
			{ }
		}
	}
}

namespace P1
{
	namespace P2
	{
		public class Bar
		{ }
	}
}

class X
{
	public static int Main ()
	{
		// Compilation-only test.
		return 0;
	}
}