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:
authorMarek Safar <marek.safar@gmail.com>2012-01-14 13:57:11 +0400
committerMarek Safar <marek.safar@gmail.com>2012-01-14 14:00:20 +0400
commita1ee5d2d51a9750f1ac95f5f2d08dce247da96e0 (patch)
treea471ee4faa44b8690108a8c6e49f4811b78d6947 /mcs/tests/test-839.cs
parent09eb71f37c1fd421470a3b40165e71ed9e2b4337 (diff)
Rework top-level type AST hierarchy to include namespaces. Allows MD to iterate full AST exactly as it was parsed, fixes bugs where namespace without types was ignored completely.
Diffstat (limited to 'mcs/tests/test-839.cs')
-rw-r--r--mcs/tests/test-839.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/mcs/tests/test-839.cs b/mcs/tests/test-839.cs
new file mode 100644
index 00000000000..f2573e9e1b0
--- /dev/null
+++ b/mcs/tests/test-839.cs
@@ -0,0 +1,38 @@
+namespace N1
+{
+ using IndexingChain = N2.D.IndexingChain;
+
+ class M
+ {
+ public static void Main ()
+ {
+ }
+ }
+}
+
+namespace N2
+{
+ using N3;
+
+ public class D : C
+ {
+ }
+}
+
+namespace N3
+{
+ using System.Collections.Generic;
+
+ public class C
+ {
+ class Foo : List<int>
+ {
+ }
+
+ public class IndexingChain
+ {
+ }
+ }
+
+}
+