diff options
Diffstat (limited to 'mcs/tests/test-137.cs')
-rwxr-xr-x | mcs/tests/test-137.cs | 45 |
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; - } -} |