Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

29 lines
383 B
C#

// 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;
}
}