Another dist build fix for rx integration, move *.cs file to safe-ish path.
[mono-project.git] / mcs / tests / test-298.cs
blob10ea1812addaf637b730d506e1e0266ede357d29
1 using System;
3 class A
5 public static int operator + (short x, A b)
7 return -1;
10 public static int operator - (A a)
12 return -1;
16 class B : A
18 public static int operator + (int x, B d)
20 return 1;
23 public static int operator - (B b)
25 return 1;
29 class C : B
33 public class Test
35 public static int Main ()
37 var b = new B ();
38 short s = 3;
39 var res = s + b;
41 if (res != 1)
42 return 1;
44 var c = new C ();
45 if (-c != 1)
46 return 2;
48 return 0;