repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-05-13 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0035.cs
blob
72e2380a73bb0f27cb107748f515f466139c2cfa
1
// CS0035: Operator `-' is ambiguous on an operand of type `A'
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
float
f
= -
a
;
23
}
24
}