[Mono-bugs] [Bug 35492][Cri] New - "error CS0205: Cannot call an abstract base indexer: object System.Collections.IList.get_Item" thown when no abstract classes involved.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
12 Dec 2002 00:04:33 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bryan@alphora.com.
http://bugzilla.ximian.com/show_bug.cgi?id=35492
--- shadow/35492 Wed Dec 11 19:04:33 2002
+++ shadow/35492.tmp.10654 Wed Dec 11 19:04:33 2002
@@ -0,0 +1,67 @@
+Bug#: 35492
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details: Build 0.17
+Status: NEW
+Resolution:
+Severity:
+Priority: Critical
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bryan@alphora.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: "error CS0205: Cannot call an abstract base indexer: object System.Collections.IList.get_Item" thown when no abstract classes involved.
+
+Description of Problem:
+This strange error is showing up when I try to compile one of my files. I
+tried for about an hour to reproduce it with a simple reproduction but
+couldn't, so I cut my code down to the included file. I'm guessing
+something is wrong with the interfaces. Compiles and works fine with csc.
+
+This is one of the last errors that is keeping me from building the first
+DLL of the huge Dataphor project. After this is fixed we should be able
+to build our XML serializer, which we are considering open sourcing.
+
+Actual Results:
+C:\src\Dataphor\Base>monomcs test-list-abstract.cs
+test-list-abstract.cs(542) error CS0205: Cannot call an abstract base
+indexer: object System.Collections.IList.get_Item
+(int)
+test-list-abstract.cs(546) error CS0205: Cannot call an abstract base
+indexer: void System.Collections.IList.set_Item (i
+nt, object)
+test-list-abstract.cs(575) error CS0205: Cannot call an abstract base
+indexer: void System.Collections.IList.set_Item (i
+nt, object)
+Compilation failed: 3 error(s), 0 warnings
+
+C:\src\Dataphor\Base>mcs test-list-abstract.cs
+
+You can run mcs with 'monomcs' on .NET, instead of mono, too.
+
+test-list-abstract.cs(542) error CS0205: Cannot call an abstract base
+indexer: object System.Collections.IList.get_Item
+(int)
+test-list-abstract.cs(546) error CS0205: Cannot call an abstract base
+indexer: void System.Collections.IList.set_Item (i
+nt, object)
+test-list-abstract.cs(575) error CS0205: Cannot call an abstract base
+indexer: void System.Collections.IList.set_Item (i
+nt, object)
+Compilation failed: 3 error(s), 0 warnings
+
+
+
+Expected Results:
+
+C:\src\Dataphor\Base>csc test-list-abstract.cs
+Microsoft (R) Visual C# .NET Compiler version 7.00.9466
+for Microsoft (R) .NET Framework version 1.0.3705
+Copyright (C) Microsoft Corporation 2001. All rights reserved.
+
+error CS5001: Program 'test-list-abstract.exe' does not have an entry
+point defined