[Mono-bugs] [Bug 75889][Nor] New - Wrong 'is' statement execution
(generics)
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Aug 23 19:40:15 EDT 2005
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 carlos at unixmexico.org.
http://bugzilla.ximian.com/show_bug.cgi?id=75889
--- shadow/75889 2005-08-23 19:40:15.000000000 -0400
+++ shadow/75889.tmp.4663 2005-08-23 19:40:15.000000000 -0400
@@ -0,0 +1,56 @@
+Bug#: 75889
+Product: Mono: Runtime
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: carlos at unixmexico.org
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Wrong 'is' statement execution (generics)
+
+The runtime executes the 'is' statement the worng way with generics.
+
+Compile the app below with gmcs:
+
+====================
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+ public class B : IComparable<B> {
+ public int CompareTo (B b)
+ {
+ return 0;
+ }
+ }
+
+ public class Tester {
+
+ static void Main ()
+ {
+ B b = new B ();
+
+ // This should be false
+ if (b is IComparable<object>)
+ Console.WriteLine ("b is IComparable<object>");
+ }
+
+ }
+==============
+
+Actual Results:
+b is IComparable<object>
+
+Expected Results:
+Nothing.
+
+How often does this happen?
+Always.
More information about the mono-bugs
mailing list