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-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
cs0121-9.cs
blob
68303d38396a19ee8bd3ed661cfd683d4b0a8774
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
}