diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2005-02-23 15:56:04 +0300 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2005-02-23 15:56:04 +0300 |
commit | c7d433768b3b28feaac14e7c43d5ec74a6ae96ca (patch) | |
tree | 8f177e774fa985964aef9ee21b3d149387ea634f /mcs/errors/cs0122-11.cs | |
parent | 7d392ed4e7793f3edbc3c845db310611e7e93ba1 (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-11.cs')
-rw-r--r-- | mcs/errors/cs0122-11.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/errors/cs0122-11.cs b/mcs/errors/cs0122-11.cs new file mode 100644 index 00000000000..7488d8e73a2 --- /dev/null +++ b/mcs/errors/cs0122-11.cs @@ -0,0 +1,15 @@ +// cs0122: `X.Y.Y(string)' is inaccessible due to its protection level +// Line: 12 + +using System; + +public class Y { + private Y(String test) { + } +} + +class T : Y { + public T(String test, String test1) : base(test) { + } + static void Main () {} +} |