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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2003-07-08 22:03:21 +0400
committerMartin Baulig <martin@novell.com>2003-07-08 22:03:21 +0400
commitae2a215b4062664f6364d713fc94b5cd15df000e (patch)
tree52b233c68190ee10f51cde722b912cb0cb817cd3 /mcs/tests/test-198.cs
parent270d71bc581c09db6dc627eca3653874e6e0ce77 (diff)
2003-07-08 Martin Baulig <martin@ximian.com>
* test-198.cs, test-199.cs: New tests for bugs #36316, #36314 and #36313. svn path=/trunk/mcs/; revision=16042
Diffstat (limited to 'mcs/tests/test-198.cs')
-rw-r--r--mcs/tests/test-198.cs92
1 files changed, 92 insertions, 0 deletions
diff --git a/mcs/tests/test-198.cs b/mcs/tests/test-198.cs
new file mode 100644
index 00000000000..e7afe125779
--- /dev/null
+++ b/mcs/tests/test-198.cs
@@ -0,0 +1,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
+{
+ static int Main ()
+ {
+ // Compilation-only test.
+ return 0;
+ }
+}