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:
Diffstat (limited to 'mcs/tests/test-137.cs')
-rwxr-xr-xmcs/tests/test-137.cs45
1 files changed, 0 insertions, 45 deletions
diff --git a/mcs/tests/test-137.cs b/mcs/tests/test-137.cs
deleted file mode 100755
index ba11bb7fc39..00000000000
--- a/mcs/tests/test-137.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-//
-// Explicitly implement all the interface methods pending with the same name.
-//
-using System;
-
-interface A {
- void X ();
-}
-
-interface B {
- void X ();
-}
-
-class C : A, B {
- int var;
-
- public void X ()
- {
- var++;
- }
-
- static int Main ()
- {
- C c = new C ();
-
- A a = c;
- B b = c;
-
- if (c.var != 0)
- return 1;
-
- a.X ();
- if (c.var != 1)
- return 2;
- b.X ();
- if (c.var != 2)
- return 3;
- c.X ();
- if (c.var != 3)
- return 4;
-
- Console.WriteLine ("Test passes");
- return 0;
- }
-}