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-22 17:28:16 +0300
committerRaja R Harinath <harinath@hurrynot.org>2005-02-22 17:28:16 +0300
commit2bd477b98ce6181ace612e7ff5c0fdaa704d159a (patch)
tree814ba58b086a05f0f378c8987067ef1cc3e0237a /mcs/errors/cs0115-3.cs
parentc1857bc34df3bbf60c6a0d440666e5e11f447932 (diff)
In mcs:
2005-02-22 Abin Thomas <projectmonokochi@rediffmail.com> Anoob V E <projectmonokochi@rediffmail.com> Harilal P R <projectmonokochi@rediffmail.com> Fix #71134. * pending.cs (PendingImplementation.GetAbstractMethods): Find NonPublic members too. In tests: 2005-02-22 Raja R Harinath <rharinath@novell.com> * mtest-6-exe.cs, mtest-6-dll.cs: New test based on #71134. In errors: * cs0115-3.c: New file based on #71134. svn path=/trunk/mcs/; revision=41043
Diffstat (limited to 'mcs/errors/cs0115-3.cs')
-rw-r--r--mcs/errors/cs0115-3.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/mcs/errors/cs0115-3.cs b/mcs/errors/cs0115-3.cs
new file mode 100644
index 00000000000..b45a80c45fb
--- /dev/null
+++ b/mcs/errors/cs0115-3.cs
@@ -0,0 +1,21 @@
+// cs0115:'MyTestExtended.GetName()': no suitable methods found to override
+// Line: 12
+// Compiler options: -r:CS0534-4-lib.dll
+
+using System;
+public class MyTestExtended : MyTestAbstract
+{
+ public MyTestExtended() : base()
+ {
+ }
+
+ protected override string GetName() { return "foo"; }
+ public static void Main(string[] args)
+ {
+ Console.WriteLine("Calling PrintName");
+ MyTestExtended test = new MyTestExtended();
+ test.PrintName();
+ Console.WriteLine("Out of PrintName");
+ }
+
+}