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
[ilasm] Don't break arguments compatiblity
[mono-project.git]
/
mcs
/
errors
/
cs0034-2.cs
blob
365899bba9f1f332885742b30d1a8144d419358f
1
// CS0034: 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
}