* statement.cs (If.Resolve): Avoid spurious "uninitialized
[mono.git] / mcs / errors / cs0172.cs
1 class X {
2         public static implicit operator X (Y y)
3         {
4                 return null;
5         }
6 }
7
8 class Y {
9         public static implicit operator Y (X x)
10         {
11                 return null;
12         }
13 }
14
15 class Z
16 {
17         static void Main ()
18         {
19                 X x = new X ();
20                 Y y = new Y ();
21
22                 object d = (x == x) ? x : y;
23         }
24         
25 }