In mcs:
authorRaja R Harinath <harinath@hurrynot.org>
Mon, 1 Aug 2005 13:21:20 +0000 (13:21 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Mon, 1 Aug 2005 13:21:20 +0000 (13:21 -0000)
Fix #75669.
* ecore.cs (Expression.MemberLookupFailed): Use queried_type for
member lookup rather than qualifier_type, since qualifier_type can
be null.

In errors:
* cs0122-17.cs: New test from #75669.

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

mcs/errors/ChangeLog
mcs/errors/cs0122-17.cs [new file with mode: 0644]
mcs/errors/known-issues-gmcs
mcs/mcs/ChangeLog
mcs/mcs/ecore.cs

index cfec607f210b2929af1b2243f48093521d2de59a..eacd6d55a7e7253dcc2861d35d2cdfbb073f75df 100644 (file)
@@ -1,3 +1,7 @@
+2005-08-01  Raja R Harinath  <rharinath@novell.com>
+
+       * cs0122-17.cs: New test from #75669.
+
 2005-07-31  Raja R Harinath  <harinath@gmail.com>
 
        * cs1502-4.cs: New test from #75658.
diff --git a/mcs/errors/cs0122-17.cs b/mcs/errors/cs0122-17.cs
new file mode 100644 (file)
index 0000000..85eb251
--- /dev/null
@@ -0,0 +1,16 @@
+// cs0122-17.cs: `A.output' is inaccessible due to its protection level
+// Line: 12
+
+public class A {
+        private string output;
+}
+
+public class B : A {
+        public void Test() {
+                switch ("a") {
+                        case "1":
+                                output.Replace("a", "b");
+                                break;
+                }
+        }
+}
index 1565c8b3b9167ec0db57697e72f1533983fa6917..198def531ca196eb6e82f18e6b2ba998f0f30558 100644 (file)
@@ -17,6 +17,7 @@ cs0118-3.cs
 cs0118-4.cs
 cs0118-5.cs
 cs0121-3.cs NO ERROR
+cs0122-17.cs NO ERROR
 cs0133-4.cs
 cs0136-6.cs NO ERROR
 cs0201.cs
index 56a4bae627cece7c89bf6b50a605b9670e91e60e..b748a236b46218e3dfc8f412e073505537d06b70 100644 (file)
@@ -1,3 +1,10 @@
+2005-08-01  Raja R Harinath  <rharinath@novell.com>
+
+       Fix #75669.
+       * ecore.cs (Expression.MemberLookupFailed): Use queried_type for
+       member lookup rather than qualifier_type, since qualifier_type can
+       be null.
+
 2005-08-01  Marek Safar  <marek.safar@seznam.cz>
 
        * enum.cs (Enum.VerifyClsName): Fixed to allow not CLSCompliant
index 3fbc619a8af993766c8e11fd966bdd09c7567692..c8c68eb8665d35e5d428837ee0da464d09b00edb 100644 (file)
@@ -690,7 +690,7 @@ namespace Mono.CSharp {
                                return;
                        }
 
-                       MemberList ml = TypeManager.FindMembers (qualifier_type, MemberTypes.Constructor,
+                       MemberList ml = TypeManager.FindMembers (queried_type, MemberTypes.Constructor,
                                BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly, null, null);
                        if (name == ".ctor" && ml.Count == 0)
                        {