2009-12-12 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / tests / test-80.cs
blobec2270b1c403f0b8bf13af7cd5e7af6d68b7d97b
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 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;