blob: 5c8dc365fc7e68127053d3acf56c3aadc4a62d3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// CS0172: Type of conditional expression cannot be determined as `X' and `Y' convert implicitly to each other
// Line: 25
class X {
public static implicit operator X (Y y)
{
return null;
}
}
class Y {
public static implicit operator Y (X x)
{
return null;
}
}
class Z
{
static void Main ()
{
X x = new X ();
Y y = new Y ();
object d = (x == x) ? x : y;
}
}
|