projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add some overloads from Alp, and fix some 1.4 signatures
[mono.git]
/
mcs
/
errors
/
cs0172.cs
1
// cs0172.cs: Can not compute type of conditional expression 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
}