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:
authorRavi Pratap M <ravi@mono-cvs.ximian.com>2002-02-21 01:27:36 +0300
committerRavi Pratap M <ravi@mono-cvs.ximian.com>2002-02-21 01:27:36 +0300
commitfddbeaf8cd9faeef981bf5b005b411653df1024a (patch)
tree3a4db03335f604be2bffd37e35fc4c9146a989b3 /mcs/errors/cs0239.cs
parentda2396bbf4c611776b4d519193c42129915d64ae (diff)
Add
svn path=/trunk/mcs/; revision=2547
Diffstat (limited to 'mcs/errors/cs0239.cs')
-rw-r--r--mcs/errors/cs0239.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/mcs/errors/cs0239.cs b/mcs/errors/cs0239.cs
new file mode 100644
index 00000000000..0f3608643bc
--- /dev/null
+++ b/mcs/errors/cs0239.cs
@@ -0,0 +1,34 @@
+// cs0239.cs : `X.MyMethod' : cannot override inherited member `Bar.MyMethod' because it is sealed.
+// Line : 25
+
+using System;
+
+public class Foo {
+
+ public virtual void MyMethod ()
+ {
+ Console.WriteLine ("This is me !");
+ }
+}
+
+public class Bar : Foo {
+
+ public sealed override void MyMethod ()
+ {
+
+ }
+
+}
+
+public class X : Bar {
+
+ public override void MyMethod ()
+ {
+
+ }
+
+ public static void Main ()
+ {
+
+ }
+}