[mcs] Allow properties and indexers of by-ref values to be set without setter
[mono.git] / mcs / errors / cs0121-9.cs
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 }