[Mono-bugs] [Bug 30384][Nor] New - Problem using `base' on getter/setter methods.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
16 Sep 2002 15:37:20 -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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=30384
--- shadow/30384 Mon Sep 16 11:37:19 2002
+++ shadow/30384.tmp.4128 Mon Sep 16 11:37:20 2002
@@ -0,0 +1,40 @@
+Bug#: 30384
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: martin@gnome.org
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Problem using `base' on getter/setter methods.
+
+The following program does not compile with MCS:
+
+using System.Collections;
+class Dictionary : Hashtable {
+ public Dictionary() {}
+ public void Add(string name, ArrayList sigs) { base.Add(name, sigs); }
+ public ArrayList this[string index] {
+ get { return (ArrayList)base[index]; }
+ set { base[index] = (ArrayList)value; }
+ }
+}
+
+class X {
+ static void Main () {
+ }
+}
+
+it reports on the lines for `get' and `set':
+b.cs(6) error CS0654: Method `System.Collections.Hashtable.get_Item()' is
+referenced without parentheses
+b.cs(7) error CS0654: Method `System.Collections.Hashtable.get_Item()' is
+referenced without parentheses