1 // cs0173-3.cs: Type of conditional expression cannot be determined because there is no implicit conversion between `ClassA' and `ClassB'
5 public static implicit operator ClassB (ClassA
value) {
9 public static implicit operator ClassA (ClassB
value) {
15 public static implicit operator ClassA (ClassB
value) {
19 public static implicit operator ClassB (ClassA
value) {
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
);