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-01-31 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
errors
/
cs0121-3.cs
blob
0ecedd64a516d99bb7fea8249beaa272cf2a38f7
1
// CS0121: The call is ambiguous between the following methods or properties: `B.operator +(A, B)' and `A.operator +(A, B)'
2
// Line: 21
3
4
class
A
5
{
6
public static
A
operator
+ (
A a
,
B b
)
7
{
8
return null
;
9
}
10
}
11
12
class
B
13
{
14
public static
A
operator
+ (
A a
,
B b
)
15
{
16
return null
;
17
}
18
19
static void
Main
()
20
{
21
object
o
=
new
A
() +
new
B
();
22
}
23
}