repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove debugging code from generated code
[mono-project.git]
/
mcs
/
errors
/
cs0035.cs
blob
b4c98dcef236a3bf7e5772c7dd8dee29130a88a7
1
// CS0035 : Operator `+' is ambiguous on operands of type `Y' and `X'
2
// Line: 22
3
4
class
A
5
{
6
public static implicit operator float
(
A x
)
7
{
8
return
0
;
9
}
10
11
public static implicit operator decimal
(
A x
)
12
{
13
return
0
;
14
}
15
}
16
17
class
M
18
{
19
static void
Main
()
20
{
21
A a
=
new
A
();
22
int
i
= -
a
;
23
}
24
}