2010-05-31 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0034-2.cs
blobf10b0de29f6fbdab42e808458966b25ad16f4d42
1 // cs0034-2.cs : Operator `+' is ambiguous on operands of type `A' and `A'
2 // Line: 22
4 public class A {
5 public static implicit operator int (A a)
7 return 0;
10 public static implicit operator string (A a)
12 return "a";
15 public static void Main ()
17 A a = new A ();
18 object o = a + a;
19 System.Console.WriteLine (o);