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
[loader] LoadFrom of problematic images should reprobe
[mono-project.git]
/
mcs
/
errors
/
cs0121-26.cs
blob
e0c76a5e724889d158b7bff09f72b667ef56614a
1
// CS0121: The call is ambiguous between the following methods or properties: `A.B.X.Test(this int)' and `A.C.X.Test(this int)'
2
// Line: 37
3
4
using
System
;
5
6
namespace
A
.
B
7
{
8
static class
X
9
{
10
public static int
Test
(
this int
o
)
11
{
12
return
1
;
13
}
14
}
15
}
16
17
namespace
A
.
C
18
{
19
static class
X
20
{
21
public static int
Test
(
this int
o
)
22
{
23
return
2
;
24
}
25
}
26
}
27
28
namespace
C
29
{
30
using
A
.
B
;
31
using static
A
.
C
.
X
;
32
33
class
M
34
{
35
public static int
Main
()
36
{
37
if
(
1
.
Test
() !=
1
)
38
return
1
;
39
40
return
0
;
41
}
42
}
43
}