[Mono-bugs] [Bug 67410][Wis] New - my_delegate == null calls MulticastDelegate::op_Equality
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 3 Oct 2004 20:47:18 -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=67410
--- shadow/67410 2004-10-03 20:47:18.000000000 -0400
+++ shadow/67410.tmp.22282 2004-10-03 20:47:18.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 67410
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: my_delegate == null calls MulticastDelegate::op_Equality
+
+Take the following test case:
+
+using System;
+
+class X {
+ delegate void D ();
+ static void Main () {
+ D d = null;
+
+ if (d == null)
+ Console.WriteLine ("X");
+
+ if (d != null)
+ Console.WriteLine ("Y");
+ }
+}
+
+MSFT just does brtrue / brfalse on d. We call
+MulticastDelegate.op_Equalitity. We might do this with other reference
+types that have operator overloads