[Mono-list] Variable number of parameters to an indexer

Robert Jordan robertj at gmx.net
Sat Sep 23 05:25:52 EDT 2006


Robert Jordan wrote:
> Susan Mackay wrote:
>> (My apologies if this is a duplicate - it didn't seem to be included the
>> first time)
>>
>>
>> I have some code that was originally developed under VS2003 and VS2005 (long
>> development time!). I'm trying to port it over to the mono environment.
> 
> A self-contained test case:
> 
> class T
> {
>          public int this [params int[] values]
>          {
>                  get { return 42; }
>                  set { }
>          }
> 
>          public static void Main ()
>          {
>                  new T () [1, 2] = 3; // error CS1501
>          }
> }
> 
> It seems that [g]mcs doesn't lookup 'set_Item' correctly.


http://bugzilla.ximian.com/show_bug.cgi?id=77014

Robert



More information about the Mono-list mailing list