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
+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.
--- /dev/null
+// 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;
+ }
+ }
+}
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
+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
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)
{