[Mono-bugs] [Bug 82270][Nor] Changed - Possible bug in Mono's generics support

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Aug 1 14:15:39 EDT 2007


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 vargaz at gmail.com.

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

--- shadow/82270	2007-08-01 07:22:23.000000000 -0400
+++ shadow/82270.tmp.3953	2007-08-01 14:15:39.000000000 -0400
@@ -131,6 +131,24 @@
   at Python.Runtime.PythonEngine.Initialize () <0x00019>
   at Python.Runtime.PythonConsole.Main (string[]) <0x00024>
   at (wrapper runtime-invoke)
 Python.Runtime.PythonConsole.runtime_invoke_int_string[]
 (object,intptr,intptr,intptr) <0xffffffff>
 
+
+------- Additional Comments From vargaz at gmail.com  2007-08-01 14:15 -------
+A testcase for the HasValue problem:
+
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+using System;
+using System.Reflection;
+
+public class Tests {
+
+	public static void Main (String[] args) {
+		PropertyInfo pi = typeof (Nullable <int>).GetProperty ("HasValue");
+		Console.WriteLine (pi.GetGetMethod ().Invoke (10, null));
+	}
+}
+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+MS prints true, we print false.
+


More information about the mono-bugs mailing list