[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / errors / cs0172.cs
1 // CS0172: Type of conditional expression cannot be determined as `X' and `Y' convert implicitly to each other
2 // Line: 25
3
4 class X {
5         public static implicit operator X (Y y)
6         {
7                 return null;
8         }
9 }
10
11 class Y {
12         public static implicit operator Y (X x)
13         {
14                 return null;
15         }
16 }
17
18 class Z
19 {
20         static void Main ()
21         {
22                 X x = new X ();
23                 Y y = new Y ();
24
25                 object d = (x == x) ? x : y;
26         }
27         
28 }