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
Merge pull request #1821 from iainx/replace-getline
[mono-project.git]
/
mcs
/
errors
/
cs0121-3.cs
blob
ae264ead0d4933b244cb7447e17f179c214964ae
1
// CS0121: The call is ambiguous between the following methods or properties: `A.operator +(A, B)' and `B.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
}