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:
authorMiguel de Icaza <miguel@gnome.org>2001-10-27 19:12:16 +0400
committerMiguel de Icaza <miguel@gnome.org>2001-10-27 19:12:16 +0400
commita7b03801a1f1bbb4feaa7f989773e0bdf9daa61b (patch)
tree7b153b0f088ca80e35cf1930c5ba6b3d80ce7ce3 /mcs/tests/test-31.cs
parent23d7ab9d3522538b2ab8262b34d976c3137e249d (diff)
Make the various versioning tests work
svn path=/trunk/mcs/; revision=1212
Diffstat (limited to 'mcs/tests/test-31.cs')
-rw-r--r--mcs/tests/test-31.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/mcs/tests/test-31.cs b/mcs/tests/test-31.cs
index 609e7193d4d..2d4bc6eaa6a 100644
--- a/mcs/tests/test-31.cs
+++ b/mcs/tests/test-31.cs
@@ -2,16 +2,18 @@
// Versioning test: make sure that we output a warning, but still call the derived
// method
//
+using System;
+
class Base {
public int which;
- virtual void A ()
+ public virtual void A ()
{
which = 1;
}
}
-class Derived {
+class Derived :Base {
public virtual void A ()
{
which = 2;
@@ -19,7 +21,7 @@ class Derived {
}
class Test {
- int Main ()
+ static int Main ()
{
Derived d = new Derived ();