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:
authorAlejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com>2002-12-02 00:06:41 +0300
committerAlejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com>2002-12-02 00:06:41 +0300
commitebe6e144bc4428ffbcb5e52d2177d8b0d28fdec4 (patch)
treee23e15b44c07df3744280d3eee1b087b26d0519c /mcs/errors/cs0112.cs
parentca9d51c80a865f053f88e3a276d3137d5a337a6d (diff)
New mcs errors tests.
svn path=/trunk/mcs/; revision=9323
Diffstat (limited to 'mcs/errors/cs0112.cs')
-rw-r--r--mcs/errors/cs0112.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/mcs/errors/cs0112.cs b/mcs/errors/cs0112.cs
new file mode 100644
index 00000000000..e1412d53764
--- /dev/null
+++ b/mcs/errors/cs0112.cs
@@ -0,0 +1,25 @@
+// cs0112.cs: A static method can not be marked as virtual, abstract or override.
+// Line: 13
+
+namespace X
+{
+ public abstract class Foo
+ {
+ public abstract int Add (int a, int b);
+ }
+
+ public class Bar: Foo
+ {
+ virtual public static int Add (int a, int b)
+ {
+ int c;
+ c = a + b;
+ return c;
+ }
+
+ static int Main ()
+ {
+ return a;
+ }
+ }
+}