[System.Runtime.Remoting] Adds System.Core reference for tests
[mono.git] / mcs / errors / cs0121-3.cs
1 // CS0121: The call is ambiguous between the following methods or properties: `A.operator +(A, B)' and `B.operator +(A, B)'
2 // Line: 21
3
4 class A
5 {
6         public static A operator + (A a, B b)
7         {
8                 return null;
9         }
10 }
11
12 class B
13 {
14         public static A operator + (A a, B b)
15         {
16                 return null;
17         }
18
19         static void Main ()
20         {
21                 object o = new A () + new B ();
22         }
23 }