2009-07-20 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0173-3.cs
blob8d9b50f8172d6115763ac6ae6a561c1bc2bf4322
1 // cs0173-3.cs: Type of conditional expression cannot be determined because there is no implicit conversion between `ClassA' and `ClassB'
2 // Line: 29
4 class ClassA {
5 public static implicit operator ClassB (ClassA value) {
6 return null;
9 public static implicit operator ClassA (ClassB value) {
10 return null;
14 class ClassB {
15 public static implicit operator ClassA (ClassB value) {
16 return null;
19 public static implicit operator ClassB (ClassA value) {
20 return null;
24 public class MainClass {
25 public static void Main() {
26 ClassA a = new ClassA();
27 ClassB b = new ClassB();
29 System.Console.WriteLine(true ? a : b);