avoid using a custom sources file for the net_2_1_raw profile
[mcs.git] / errors / cs0172.cs
blobfa6e77ae5783965417c6779655ed102aa995caac
1 // cs0172.cs: Can not compute type of conditional expression 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;