mail-archives/mono-bugs/2003-July/006708.html

112 строки
3.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 47216][Wis] Changed - bogus warnings on subclasses overriding parent methods
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40rocky.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="006707.html">
<LINK REL="Next" HREF="006709.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 47216][Wis] Changed - bogus warnings on subclasses overriding parent methods
</H1>
<B>bugzilla-daemon@rocky.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
TITLE="[Mono-bugs] [Bug 47216][Wis] Changed - bogus warnings on subclasses overriding parent methods">bugzilla-daemon@rocky.ximian.com
</A><BR>
<I>Thu, 31 Jul 2003 18:14:54 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="006707.html">[Mono-bugs] [Bug 47216][Wis] New - bogus warnings on subclasses overriding parent methods
</A></li>
<LI> Next message: <A HREF="006709.html">[Mono-bugs] [Bug 47215][Wis] Changed - System.Array methods called on implicit arrays generate error
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6708">[ date ]</a>
<a href="thread.html#6708">[ thread ]</a>
<a href="subject.html#6708">[ subject ]</a>
<a href="author.html#6708">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="mailto:orphennui@yahoo.com.">orphennui@yahoo.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=47216">http://bugzilla.ximian.com/show_bug.cgi?id=47216</A>
--- shadow/47216 Thu Jul 31 18:05:06 2003
+++ shadow/47216.tmp.26739 Thu Jul 31 18:14:54 2003
@@ -1,14 +1,14 @@
Bug#: 47216
Product: Mono/MCS
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: Misc
AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
ReportedBy: <A HREF="mailto:orphennui@yahoo.com">orphennui@yahoo.com</A>
QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
TargetMilestone: ---
@@ -16,6 +16,31 @@
Cc:
Summary: bogus warnings on subclasses overriding parent methods
I get warnings about needing to use &quot;new&quot; on methods which have the same
name but a different signature (argument list anyways, dunno about retval)
than a method in their parent. This seems incorrect.
+
+------- Additional Comments From <A HREF="mailto:orphennui@yahoo.com">orphennui@yahoo.com</A> 2003-07-31 18:14 -------
+err, not a method in the parent, but a property in the parent....
+
+public class Foo {
+ public class Bar {
+ public int MyInt {
+ get { return 0; }
+ }
+ }
+
+ public class Bar2 : Bar {
+ public int MyInt(int foo) {
+ return foo;
+ }
+ }
+
+ public static void Main ()
+ {
+ Bar2 b2 = new Bar2 ();
+ Console.WriteLine (b2.MyInt (1234));
+ }
+}
+
+
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="006707.html">[Mono-bugs] [Bug 47216][Wis] New - bogus warnings on subclasses overriding parent methods
</A></li>
<LI> Next message: <A HREF="006709.html">[Mono-bugs] [Bug 47215][Wis] Changed - System.Array methods called on implicit arrays generate error
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6708">[ date ]</a>
<a href="thread.html#6708">[ thread ]</a>
<a href="subject.html#6708">[ subject ]</a>
<a href="author.html#6708">[ author ]</a>
</LI>
</UL>
</body></html>