projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[runtime] Avoid indirection when building MonoContext on darwin
[mono.git]
/
mcs
/
errors
/
cs0121-26.cs
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
}