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
2010-02-19 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git]
/
errors
/
cs0034-2.cs
blob
f10b0de29f6fbdab42e808458966b25ad16f4d42
1
// cs0034-2.cs : Operator `+' is ambiguous on operands of type `A' and `A'
2
// Line: 22
3
4
public class
A
{
5
public static implicit operator int
(
A a
)
6
{
7
return
0
;
8
}
9
10
public static implicit operator string
(
A a
)
11
{
12
return
"a"
;
13
}
14
15
public static void
Main
()
16
{
17
A a
=
new
A
();
18
object
o
=
a
+
a
;
19
System
.
Console
.
WriteLine
(
o
);
20
}
21
}