[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / test-80.cs
blob882f33ad6ee01a1f34e4639747026ece6f637e77
1 //
2 // This test is used to check that we can actually use implementations
3 // provided in our parent to interfaces declared afterwards.
4 //
6 using System;
8 public interface A {
9 int Add (int a, int b);
12 public class X {
13 public int Add (int a, int b)
15 return a + b;
19 class Y : X, A {
21 public static int Main ()
23 Y y = new Y ();
25 if (y.Add (1, 1) != 2)
26 return 1;
28 Console.WriteLine ("parent interface implementation test passes");
29 return 0;