bugDotGNU Portable.NET - Bugs: bug #9555, cscc error: indexer...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9555: cscc error: indexer BindingsCollection this[int index] not recognized if used in same compilation unit

Submitted by:  Klaus Treichel <ktreichel>
Submitted on:  Mon 05 Jul 2004 02:54:30 PM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon 25 Oct 2004 01:53:31 PM UTC, comment #1:

There is no UpdateIsBinding() in the class 'Binding' (which is what the compiler actually chokes on). You are calling a non existent method on a class .

You should have got this error too ?

./CurrencyManager.cs:245: called object is not a method or delegate

Gopal.V <t3rmin4t0r>
Project Administrator
Mon 05 Jul 2004 02:54:30 PM UTC, original submission:

when using the indexer inside System.Windows.Forms.dll the error "array or indexed value expected" occures where is shouldn't have.

How to reproduce the error:
Replace the method UpdateIsBinding in pnetlib/System.Windows.Forms/CurrencyManager.cs with the following snippet:

protected override void UpdateIsBinding()
{
int numBindings;
int count;

numBindings = Bindings.Count;
count = 0;
while (count <= numBindings)
{
Bindings[count].UpdateIsBinding();
count++;
}
}

when compiling System.Windows.Forms.dll the error above occures.

Using the indexer BindingsCollection.this[int index] in an extra compilation unit for example a test case linked with System.Windows.Forms.dll is ok.

Klaus Treichel <ktreichel>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 25 Oct 2004 01:53:31 PM UTCt3rmin4t0rStatusNone=>Invalid
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1