2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0172.cs
blob5c8dc365fc7e68127053d3acf56c3aadc4a62d3d
1 // CS0172: Type of conditional expression cannot be determined as `X' and `Y' convert implicitly to each other
2 // Line: 25
4 class X {
5 public static implicit operator X (Y y)
7 return null;
11 class Y {
12 public static implicit operator Y (X x)
14 return null;
18 class Z
20 static void Main ()
22 X x = new X ();
23 Y y = new Y ();
25 object d = (x == x) ? x : y;