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
[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#20440)
[mono-project.git]
/
mcs
/
errors
/
cs0121-9.cs
blob
a12700b88f1bbe228c24caf4e6906651f58a9cd1
1
// CS0121: The call is ambiguous between the following methods or properties: `IList.Count()' and `ICounter.Count()'
2
// Line: 29
3
4
using
System
;
5
6
interface
IList
7
{
8
int
Count
();
9
}
10
11
interface
ICounter
12
{
13
int
Count
();
14
}
15
16
interface
ICollection
17
{
18
int
Count { set; }
19
}
20
21
interface
IListCounter
:
IList
,
ICounter
,
ICollection
22
{
23
}
24
25
class
Test
26
{
27
static void
Foo
(
IListCounter t
)
28
{
29
t
.
Count
();
30
}
31
}