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:
authorRaja R Harinath <harinath@hurrynot.org>2005-02-23 15:56:04 +0300
committerRaja R Harinath <harinath@hurrynot.org>2005-02-23 15:56:04 +0300
commitc7d433768b3b28feaac14e7c43d5ec74a6ae96ca (patch)
tree8f177e774fa985964aef9ee21b3d149387ea634f /mcs/errors/cs0122-10.cs
parent7d392ed4e7793f3edbc3c845db310611e7e93ba1 (diff)
In mcs:
2005-02-23 Raja R Harinath <rharinath@novell.com> Abin Thomas <projectmonokochi@rediffmail.com> Anoob V E <projectmonokochi@rediffmail.com> Harilal P R <projectmonokochi@rediffmail.com> Fix #57851, #72718. * class.cs (ConstructorBuilder.Resolve): Make sure that the second MemberLookup (used for error reporting) actually returns a result. Fix error report number (122, not 112). In errors: * cs0122-10.cs, CS0122-10-lib.cs: New tests based on #57851. * Makefile (all-local): Add CS0122-10-lib.dll. * cs0122-11.cs: New test based on #72718. * cs0112-2.cs: Remove erroneous test. Same as cs1501.cs. * mcs-expect-wrong-error (cs1501.cs): Remove. svn path=/trunk/mcs/; revision=41087
Diffstat (limited to 'mcs/errors/cs0122-10.cs')
-rw-r--r--mcs/errors/cs0122-10.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/errors/cs0122-10.cs b/mcs/errors/cs0122-10.cs
new file mode 100644
index 00000000000..de31f50b1fe
--- /dev/null
+++ b/mcs/errors/cs0122-10.cs
@@ -0,0 +1,12 @@
+// cs0122: `X.Y.Y(string)' is inaccessible due to its protection level
+// Line: 9
+// Compiler options: -r:CS0122-10-lib.dll
+
+using System;
+using X;
+
+class T : Y {
+ public T(String test, String test1) : base(test) {
+ }
+ static void Main () {}
+}