[Mono-bugs] [Bug 68738][Nor] Changed - new keyword on property is broken

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 26 Oct 2004 08:21:08 -0400 (EDT)


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 bmaurer@users.sf.net.

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

--- shadow/68738	2004-10-26 02:49:49.000000000 -0400
+++ shadow/68738.tmp.11382	2004-10-26 08:21:08.000000000 -0400
@@ -60,6 +60,30 @@
 Gtk.Menu.Screen is an example.
 ./NotificationAreaIcon.cs(193) error CS0154: The property `Screen' can not
 be used in this context because it lacks a get accessor
 
 ------- Additional Comments From marek.safar@seznam.cz  2004-10-26 02:49 -------
 It is monop problem/bug not mcs. Please reassing this bug.
+
+------- Additional Comments From bmaurer@users.sf.net  2004-10-26 08:21 -------
+Miguel, where can we put this bug?
+
+John, interesting bug. So what we need to do is, the first time we 
+see a property with a `new' flag on it (there is a way to find this 
+out from the attributes property), we need to stop looking at items 
+with the same name.
+
+We will need to be careful on cases like:
+
+class X {
+   public int A (int x);
+   public int A (long x);
+}
+
+class Y : X {
+   public new int A (int x);
+}
+
+In this case, the second overload of A in X should be visible.
+
+MCS has the code to handle the resolution correctly here. Sadly, the 
+code gets somewhat comples.