[Mono-bugs] [Bug 63841][Nor] Changed - [PATCH] Type.GetElementType doesn't return null when expected

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 8 Nov 2004 12:16:15 -0500 (EST)


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 danw@novell.com.

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

--- shadow/63841	2004-09-21 12:51:23.000000000 -0400
+++ shadow/63841.tmp.14846	2004-11-08 12:16:15.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 63841
 Product: Mono: Class Libraries
 Version: unspecified
 OS: All
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: priewasser@gmx.at               
 QAContact: mono-bugs@ximian.com
@@ -65,6 +65,23 @@
 fixed in HEAD, approved by miguel.
 
 
 ------- Additional Comments From lupus@ximian.com  2004-09-21 12:51 -------
 Please also add a test case to the test suite.
 Thanks.
+
+------- Additional Comments From danw@novell.com  2004-11-08 12:16 -------
+This program prints "null" on .NET, but "System.Int32" on mono:
+
+using System;
+
+public enum Blah { Foo, Bar, Baz };
+
+public class TypeTest {
+	public static void Main () {
+		Type t = typeof (Blah);
+		Type et = t.GetElementType ();
+
+		Console.WriteLine (et == null ? "null" : et.ToString ());
+	}
+}
+