monotouch uses the real HttpWebRequest
[mcs.git] / tests / test-137.cs
blobba11bb7fc393a4db8b24aeefbf07e76939829927
1 //
2 // Explicitly implement all the interface methods pending with the same name.
3 //
4 using System;
6 interface A {
7 void X ();
10 interface B {
11 void X ();
14 class C : A, B {
15 int var;
17 public void X ()
19 var++;
22 static int Main ()
24 C c = new C ();
26 A a = c;
27 B b = c;
29 if (c.var != 0)
30 return 1;
32 a.X ();
33 if (c.var != 1)
34 return 2;
35 b.X ();
36 if (c.var != 2)
37 return 3;
38 c.X ();
39 if (c.var != 3)
40 return 4;
42 Console.WriteLine ("Test passes");
43 return 0;