Merge pull request #4816 from BrzVlad/fix-remoting-exception
[mono.git] / mcs / tests / test-75.cs
1 //
2 // This test probes using an operator overloaded in a parents' parent
3 //
4
5 class X {
6         public static bool called = false;
7         
8         static public X operator + (X a, X b)
9         {
10                 called = true;
11                 return null;
12         }
13 }
14
15 class Y : X {
16 }
17
18 class Z : Y {
19 }
20
21 class driver {
22
23         public static int Main ()
24         {
25                 Z a = new Z ();
26                 Z b = new Z ();
27                 X c = a + b;
28
29                 if (X.called)
30                         return 0;
31
32                 return 1;
33         }
34
35 }
36