2003-08-26 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Tue, 26 Aug 2003 20:17:25 +0000 (20:17 -0000)
committerMartin Baulig <martin@novell.com>
Tue, 26 Aug 2003 20:17:25 +0000 (20:17 -0000)
* test-215.cs: New test for bug #47927.

svn path=/trunk/mcs/; revision=17636

mcs/tests/ChangeLog
mcs/tests/Makefile
mcs/tests/README.tests
mcs/tests/test-215.cs [new file with mode: 0644]

index 1fff9684cba320221c4ffa5022ce79ffca1a2c53..d98cda6c891d9e371d233a7497469060ce6db9df 100755 (executable)
@@ -1,6 +1,10 @@
 2003-08-26  Martin Baulig  <martin@ximian.com>
 
-       * verify-7.cs: New test buf bug #47681.
+       * test-215.cs: New test for bug #47927.
+
+2003-08-26  Martin Baulig  <martin@ximian.com>
+
+       * verify-7.cs: New test for bug #47681.
 
 2003-08-26  Martin Baulig  <martin@ximian.com>
 
index d67ddebf3467345a9a4063ce3a5277b48992c42c..c4079ad340164384cd4d066afbbde5110dd2cb4d 100644 (file)
@@ -34,7 +34,7 @@ TEST_SOURCES = \
        test-181 test-182 test-183 test-184 test-185 test-186 test-187 test-188 test-189 test-190 \
        test-191 test-192 test-193 test-194 test-195 test-196 test-197 test-198 test-199 test-200 \
        test-201 test-202 test-203 test-204 test-205 test-206 test-207 test-208 test-209 test-210 \
-       test-211 test-212 test-213 test-214
+       test-211 test-212 test-213 test-214 test-215
 
 #
 # C# 2.0 tests 
index 4d8a87d4acd0757080d02a0c975759fde16d238e..1a6308749d57abca403ae98367ea1ea5b238e5de 100644 (file)
@@ -374,6 +374,11 @@ test-214.cs
 
 Namespace lookups; bug #47853.
 
+test-215.cs
+-----------
+
+Namespace lookups; bug #47927.
+
 verify-1.cs
 -----------
 Test whether we do not jump out of the method in a Try/Finally block.
diff --git a/mcs/tests/test-215.cs b/mcs/tests/test-215.cs
new file mode 100644 (file)
index 0000000..073d2f4
--- /dev/null
@@ -0,0 +1,21 @@
+using C1 = N1.C1;
+
+public class Test {
+       private static C1 c1 = null;
+
+       public static C1 C1 {
+               get {
+                       return c1;
+               }
+       }
+
+       public static int Main() {
+               C1 tmp = C1;
+               return 0;
+       }
+}
+
+namespace N1 {
+    public class C1 {
+    }
+}